@sencha/reext
Advanced tools
Comparing version 0.0.36 to 0.0.37
@@ -1,2 +0,2 @@ | ||
import Me, { useState as ie, useRef as we, useEffect as Pe, cloneElement as tt } from "react"; | ||
import Me, { useState as ie, useRef as we, useEffect as Pe, cloneElement as nt } from "react"; | ||
import "react-dom"; | ||
@@ -14,3 +14,3 @@ var ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ke = { exports: {} }, le = {}; | ||
var nr; | ||
function nt() { | ||
function it() { | ||
if (nr) return le; | ||
@@ -39,3 +39,3 @@ nr = 1; | ||
var ir; | ||
function it() { | ||
function at() { | ||
return ir || (ir = 1, process.env.NODE_ENV !== "production" && function() { | ||
@@ -54,6 +54,6 @@ var r = Me, a = Symbol.for("react.element"), v = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), t = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), c = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), V = Symbol.iterator, R = "@@iterator"; | ||
s[y - 1] = arguments[y]; | ||
G("error", e, s); | ||
J("error", e, s); | ||
} | ||
} | ||
function G(e, n, s) { | ||
function J(e, n, s) { | ||
{ | ||
@@ -68,4 +68,4 @@ var y = U.ReactDebugCurrentFrame, _ = y.getStackAddendum(); | ||
} | ||
var A = !1, Z = !1, u = !1, K = !1, D = !1, J; | ||
J = Symbol.for("react.module.reference"); | ||
var A = !1, Z = !1, u = !1, K = !1, D = !1, G; | ||
G = Symbol.for("react.module.reference"); | ||
function f(e) { | ||
@@ -76,3 +76,3 @@ return !!(typeof e == "string" || typeof e == "function" || e === l || e === i || D || e === t || e === T || e === C || K || e === b || A || Z || u || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === E || e.$$typeof === x || e.$$typeof === c || e.$$typeof === j || // This needs to include all possible module reference object | ||
// with. | ||
e.$$typeof === J || e.getModuleId !== void 0)); | ||
e.$$typeof === G || e.getModuleId !== void 0)); | ||
} | ||
@@ -138,3 +138,3 @@ function g(e, n, s) { | ||
Be.__reactDisabledLog = !0; | ||
function Cr() { | ||
function Or() { | ||
{ | ||
@@ -162,3 +162,3 @@ if (d === 0) { | ||
} | ||
function Or() { | ||
function Pr() { | ||
{ | ||
@@ -214,4 +214,4 @@ if (d--, d === 0) { | ||
{ | ||
var Pr = typeof WeakMap == "function" ? WeakMap : Map; | ||
de = new Pr(); | ||
var kr = typeof WeakMap == "function" ? WeakMap : Map; | ||
de = new kr(); | ||
} | ||
@@ -231,3 +231,3 @@ function Ve(e, n) { | ||
var O; | ||
O = be.current, be.current = null, Cr(); | ||
O = be.current, be.current = null, Or(); | ||
try { | ||
@@ -285,3 +285,3 @@ if (n) { | ||
} finally { | ||
Ee = !1, be.current = O, Or(), Error.prepareStackTrace = _; | ||
Ee = !1, be.current = O, Pr(), Error.prepareStackTrace = _; | ||
} | ||
@@ -291,6 +291,6 @@ var te = e ? e.displayName || e.name : "", Q = te ? fe(te) : ""; | ||
} | ||
function kr(e, n, s) { | ||
function Ar(e, n, s) { | ||
return Ve(e, !1); | ||
} | ||
function Ar(e) { | ||
function Fr(e) { | ||
var n = e.prototype; | ||
@@ -303,3 +303,3 @@ return !!(n && n.isReactComponent); | ||
if (typeof e == "function") | ||
return Ve(e, Ar(e)); | ||
return Ve(e, Fr(e)); | ||
if (typeof e == "string") | ||
@@ -316,3 +316,3 @@ return fe(e); | ||
case j: | ||
return kr(e.render); | ||
return Ar(e.render); | ||
case E: | ||
@@ -338,3 +338,3 @@ return ve(e.type, n, s); | ||
} | ||
function Fr(e, n, s, y, _) { | ||
function Ir(e, n, s, y, _) { | ||
{ | ||
@@ -358,7 +358,7 @@ var O = Function.call.bind(oe); | ||
} | ||
var Ir = Array.isArray; | ||
var Dr = Array.isArray; | ||
function je(e) { | ||
return Ir(e); | ||
return Dr(e); | ||
} | ||
function Dr(e) { | ||
function Nr(e) { | ||
{ | ||
@@ -369,5 +369,5 @@ var n = typeof Symbol == "function" && Symbol.toStringTag, s = n && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
} | ||
function Nr(e) { | ||
function Mr(e) { | ||
try { | ||
return Je(e), !1; | ||
return Ge(e), !1; | ||
} catch { | ||
@@ -377,10 +377,10 @@ return !0; | ||
} | ||
function Je(e) { | ||
function Ge(e) { | ||
return "" + e; | ||
} | ||
function Ge(e) { | ||
if (Nr(e)) | ||
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Dr(e)), Je(e); | ||
function Je(e) { | ||
if (Mr(e)) | ||
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Nr(e)), Ge(e); | ||
} | ||
var se = U.ReactCurrentOwner, Mr = { | ||
var se = U.ReactCurrentOwner, Wr = { | ||
key: !0, | ||
@@ -392,3 +392,3 @@ ref: !0, | ||
Re = {}; | ||
function Wr(e) { | ||
function zr(e) { | ||
if (oe.call(e, "ref")) { | ||
@@ -401,3 +401,3 @@ var n = Object.getOwnPropertyDescriptor(e, "ref").get; | ||
} | ||
function zr(e) { | ||
function Ur(e) { | ||
if (oe.call(e, "key")) { | ||
@@ -410,3 +410,3 @@ var n = Object.getOwnPropertyDescriptor(e, "key").get; | ||
} | ||
function Ur(e, n) { | ||
function Br(e, n) { | ||
if (typeof e.ref == "string" && se.current && n && se.current.stateNode !== n) { | ||
@@ -417,3 +417,3 @@ var s = o(se.current.type); | ||
} | ||
function Br(e, n) { | ||
function Vr(e, n) { | ||
{ | ||
@@ -429,3 +429,3 @@ var s = function() { | ||
} | ||
function Vr(e, n) { | ||
function Lr(e, n) { | ||
{ | ||
@@ -441,3 +441,3 @@ var s = function() { | ||
} | ||
var Lr = function(e, n, s, y, _, O, $) { | ||
var Yr = function(e, n, s, y, _, O, $) { | ||
var h = { | ||
@@ -471,8 +471,8 @@ // This tag allows us to uniquely identify this as a React Element | ||
}; | ||
function Yr(e, n, s, y, _) { | ||
function Gr(e, n, s, y, _) { | ||
{ | ||
var O, $ = {}, h = null, W = null; | ||
s !== void 0 && (Ge(s), h = "" + s), zr(n) && (Ge(n.key), h = "" + n.key), Wr(n) && (W = n.ref, Ur(n, _)); | ||
s !== void 0 && (Je(s), h = "" + s), Ur(n) && (Je(n.key), h = "" + n.key), zr(n) && (W = n.ref, Br(n, _)); | ||
for (O in n) | ||
oe.call(n, O) && !Mr.hasOwnProperty(O) && ($[O] = n[O]); | ||
oe.call(n, O) && !Wr.hasOwnProperty(O) && ($[O] = n[O]); | ||
if (e && e.defaultProps) { | ||
@@ -485,5 +485,5 @@ var k = e.defaultProps; | ||
var F = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; | ||
h && Br($, F), W && Vr($, F); | ||
h && Vr($, F), W && Lr($, F); | ||
} | ||
return Lr(e, h, W, _, y, se.current, $); | ||
return Yr(e, h, W, _, y, se.current, $); | ||
} | ||
@@ -520,3 +520,3 @@ } | ||
var Ze = {}; | ||
function Gr(e) { | ||
function Kr(e) { | ||
{ | ||
@@ -538,3 +538,3 @@ var n = Xe(); | ||
e._store.validated = !0; | ||
var s = Gr(n); | ||
var s = Kr(n); | ||
if (Ze[s]) | ||
@@ -566,3 +566,3 @@ return; | ||
} | ||
function Kr(e) { | ||
function qr(e) { | ||
{ | ||
@@ -583,3 +583,3 @@ var n = e.type; | ||
var y = o(n); | ||
Fr(s, e.props, "prop", y, e); | ||
Ir(s, e.props, "prop", y, e); | ||
} else if (n.PropTypes !== void 0 && !_e) { | ||
@@ -593,3 +593,3 @@ _e = !0; | ||
} | ||
function qr(e) { | ||
function Hr(e) { | ||
{ | ||
@@ -618,3 +618,3 @@ for (var n = Object.keys(e.props), s = 0; s < n.length; s++) { | ||
} | ||
var F = Yr(e, n, s, _, O); | ||
var F = Gr(e, n, s, _, O); | ||
if (F == null) | ||
@@ -636,7 +636,7 @@ return F; | ||
if (oe.call(n, "key")) { | ||
var Q = o(e), z = Object.keys(n).filter(function(rt) { | ||
return rt !== "key"; | ||
var Q = o(e), z = Object.keys(n).filter(function(tt) { | ||
return tt !== "key"; | ||
}), Ce = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}"; | ||
if (!rr[Q + Ce]) { | ||
var et = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}"; | ||
var rt = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}"; | ||
P(`A props object containing a "key" prop is being spread into JSX: | ||
@@ -647,22 +647,22 @@ let props = %s; | ||
let props = %s; | ||
<%s key={someKey} {...props} />`, Ce, Q, et, Q), rr[Q + Ce] = !0; | ||
<%s key={someKey} {...props} />`, Ce, Q, rt, Q), rr[Q + Ce] = !0; | ||
} | ||
} | ||
return e === l ? qr(F) : Kr(F), F; | ||
return e === l ? Hr(F) : qr(F), F; | ||
} | ||
} | ||
function Hr(e, n, s) { | ||
function Xr(e, n, s) { | ||
return tr(e, n, s, !0); | ||
} | ||
function Xr(e, n, s) { | ||
function Zr(e, n, s) { | ||
return tr(e, n, s, !1); | ||
} | ||
var Zr = Xr, Qr = Hr; | ||
ce.Fragment = l, ce.jsx = Zr, ce.jsxs = Qr; | ||
var Qr = Zr, et = Xr; | ||
ce.Fragment = l, ce.jsx = Qr, ce.jsxs = et; | ||
}()), ce; | ||
} | ||
process.env.NODE_ENV === "production" ? ke.exports = nt() : ke.exports = it(); | ||
var m = ke.exports, at = typeof ye == "object" && ye && ye.Object === Object && ye, $r = at, ot = $r, st = typeof self == "object" && self && self.Object === Object && self, lt = ot || st || Function("return this")(), Y = lt, ct = Y, ut = ct.Symbol, he = ut, ar = he, Er = Object.prototype, ft = Er.hasOwnProperty, dt = Er.toString, ue = ar ? ar.toStringTag : void 0; | ||
function vt(r) { | ||
var a = ft.call(r, ue), v = r[ue]; | ||
process.env.NODE_ENV === "production" ? ke.exports = it() : ke.exports = at(); | ||
var m = ke.exports, ot = typeof ye == "object" && ye && ye.Object === Object && ye, $r = ot, st = $r, lt = typeof self == "object" && self && self.Object === Object && self, ct = st || lt || Function("return this")(), Y = ct, ut = Y, ft = ut.Symbol, he = ft, ar = he, Er = Object.prototype, dt = Er.hasOwnProperty, vt = Er.toString, ue = ar ? ar.toStringTag : void 0; | ||
function pt(r) { | ||
var a = dt.call(r, ue), v = r[ue]; | ||
try { | ||
@@ -673,37 +673,37 @@ r[ue] = void 0; | ||
} | ||
var t = dt.call(r); | ||
var t = vt.call(r); | ||
return l && (a ? r[ue] = v : delete r[ue]), t; | ||
} | ||
var pt = vt, yt = Object.prototype, wt = yt.toString; | ||
function xt(r) { | ||
return wt.call(r); | ||
var yt = pt, wt = Object.prototype, xt = wt.toString; | ||
function gt(r) { | ||
return xt.call(r); | ||
} | ||
var gt = xt, or = he, mt = pt, ht = gt, bt = "[object Null]", $t = "[object Undefined]", sr = or ? or.toStringTag : void 0; | ||
function Et(r) { | ||
return r == null ? r === void 0 ? $t : bt : sr && sr in Object(r) ? mt(r) : ht(r); | ||
var mt = gt, or = he, ht = yt, bt = mt, $t = "[object Null]", Et = "[object Undefined]", sr = or ? or.toStringTag : void 0; | ||
function jt(r) { | ||
return r == null ? r === void 0 ? Et : $t : sr && sr in Object(r) ? ht(r) : bt(r); | ||
} | ||
var We = Et; | ||
function jt(r) { | ||
var We = jt; | ||
function Rt(r) { | ||
var a = typeof r; | ||
return r != null && (a == "object" || a == "function"); | ||
} | ||
var jr = jt, Rt = We, St = jr, _t = "[object AsyncFunction]", Tt = "[object Function]", Ct = "[object GeneratorFunction]", Ot = "[object Proxy]"; | ||
function Pt(r) { | ||
if (!St(r)) | ||
var jr = Rt, St = We, _t = jr, Tt = "[object AsyncFunction]", Ct = "[object Function]", Ot = "[object GeneratorFunction]", Pt = "[object Proxy]"; | ||
function kt(r) { | ||
if (!_t(r)) | ||
return !1; | ||
var a = Rt(r); | ||
return a == Tt || a == Ct || a == _t || a == Ot; | ||
var a = St(r); | ||
return a == Ct || a == Ot || a == Tt || a == Pt; | ||
} | ||
var kt = Pt, At = Y, Ft = At["__core-js_shared__"], It = Ft, Oe = It, lr = function() { | ||
var At = kt, Ft = Y, It = Ft["__core-js_shared__"], Dt = It, Oe = Dt, lr = function() { | ||
var r = /[^.]+$/.exec(Oe && Oe.keys && Oe.keys.IE_PROTO || ""); | ||
return r ? "Symbol(src)_1." + r : ""; | ||
}(); | ||
function Dt(r) { | ||
function Nt(r) { | ||
return !!lr && lr in r; | ||
} | ||
var Nt = Dt, Mt = Function.prototype, Wt = Mt.toString; | ||
function zt(r) { | ||
var Mt = Nt, Wt = Function.prototype, zt = Wt.toString; | ||
function Ut(r) { | ||
if (r != null) { | ||
try { | ||
return Wt.call(r); | ||
return zt.call(r); | ||
} catch { | ||
@@ -718,26 +718,26 @@ } | ||
} | ||
var Rr = zt, Ut = kt, Bt = Nt, Vt = jr, Lt = Rr, Yt = /[\\^$.*+?()[\]{}|]/g, Jt = /^\[object .+?Constructor\]$/, Gt = Function.prototype, Kt = Object.prototype, qt = Gt.toString, Ht = Kt.hasOwnProperty, Xt = RegExp( | ||
"^" + qt.call(Ht).replace(Yt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" | ||
var Rr = Ut, Bt = At, Vt = Mt, Lt = jr, Yt = Rr, Gt = /[\\^$.*+?()[\]{}|]/g, Jt = /^\[object .+?Constructor\]$/, Kt = Function.prototype, qt = Object.prototype, Ht = Kt.toString, Xt = qt.hasOwnProperty, Zt = RegExp( | ||
"^" + Ht.call(Xt).replace(Gt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" | ||
); | ||
function Zt(r) { | ||
if (!Vt(r) || Bt(r)) | ||
function Qt(r) { | ||
if (!Lt(r) || Vt(r)) | ||
return !1; | ||
var a = Ut(r) ? Xt : Jt; | ||
return a.test(Lt(r)); | ||
var a = Bt(r) ? Zt : Jt; | ||
return a.test(Yt(r)); | ||
} | ||
var Qt = Zt; | ||
function en(r, a) { | ||
var en = Qt; | ||
function rn(r, a) { | ||
return r == null ? void 0 : r[a]; | ||
} | ||
var rn = en, tn = Qt, nn = rn; | ||
function an(r, a) { | ||
var v = nn(r, a); | ||
return tn(v) ? v : void 0; | ||
var tn = rn, nn = en, an = tn; | ||
function on(r, a) { | ||
var v = an(r, a); | ||
return nn(v) ? v : void 0; | ||
} | ||
var ee = an, on = ee, sn = Y, ln = on(sn, "Map"), cn = ln, un = ee; | ||
un(Object, "create"); | ||
var fn = ee; | ||
var ee = on, sn = ee, ln = Y, cn = sn(ln, "Map"), un = cn, fn = ee; | ||
fn(Object, "create"); | ||
var dn = ee; | ||
(function() { | ||
try { | ||
var r = fn(Object, "defineProperty"); | ||
var r = dn(Object, "defineProperty"); | ||
return r({}, "", {}), r; | ||
@@ -747,10 +747,10 @@ } catch { | ||
})(); | ||
function dn(r) { | ||
function vn(r) { | ||
return r != null && typeof r == "object"; | ||
} | ||
var Sr = dn, vn = We, pn = Sr, yn = "[object Arguments]"; | ||
function wn(r) { | ||
return pn(r) && vn(r) == yn; | ||
var Sr = vn, pn = We, yn = Sr, wn = "[object Arguments]"; | ||
function xn(r) { | ||
return yn(r) && pn(r) == wn; | ||
} | ||
var xn = wn, cr = xn, gn = Sr, _r = Object.prototype, mn = _r.hasOwnProperty, hn = _r.propertyIsEnumerable; | ||
var gn = xn, cr = gn, mn = Sr, _r = Object.prototype, hn = _r.hasOwnProperty, bn = _r.propertyIsEnumerable; | ||
cr(/* @__PURE__ */ function() { | ||
@@ -760,9 +760,9 @@ return arguments; | ||
var xe = { exports: {} }; | ||
function bn() { | ||
function $n() { | ||
return !1; | ||
} | ||
var $n = bn; | ||
var En = $n; | ||
xe.exports; | ||
(function(r, a) { | ||
var v = Y, l = $n, t = a && !a.nodeType && a, i = t && !0 && r && !r.nodeType && r, x = i && i.exports === t, c = x ? v.Buffer : void 0, j = c ? c.isBuffer : void 0, T = j || l; | ||
var v = Y, l = En, t = a && !a.nodeType && a, i = t && !0 && r && !r.nodeType && r, x = i && i.exports === t, c = x ? v.Buffer : void 0, j = c ? c.isBuffer : void 0, T = j || l; | ||
r.exports = T; | ||
@@ -798,16 +798,16 @@ })(xe, xe.exports); | ||
me.exports; | ||
var En = ee, jn = Y, Rn = En(jn, "DataView"), Sn = Rn, _n = ee, Tn = Y, Cn = _n(Tn, "Promise"), On = Cn, Pn = ee, kn = Y, An = Pn(kn, "Set"), Fn = An, In = ee, Dn = Y, Nn = In(Dn, "WeakMap"), Mn = Nn, Ae = Sn, Fe = cn, Ie = On, De = Fn, Ne = Mn, Tr = We, ae = Rr, fr = "[object Map]", Wn = "[object Object]", dr = "[object Promise]", vr = "[object Set]", pr = "[object WeakMap]", yr = "[object DataView]", zn = ae(Ae), Un = ae(Fe), Bn = ae(Ie), Vn = ae(De), Ln = ae(Ne), ne = Tr; | ||
var jn = ee, Rn = Y, Sn = jn(Rn, "DataView"), _n = Sn, Tn = ee, Cn = Y, On = Tn(Cn, "Promise"), Pn = On, kn = ee, An = Y, Fn = kn(An, "Set"), In = Fn, Dn = ee, Nn = Y, Mn = Dn(Nn, "WeakMap"), Wn = Mn, Ae = _n, Fe = un, Ie = Pn, De = In, Ne = Wn, Tr = We, ae = Rr, fr = "[object Map]", zn = "[object Object]", dr = "[object Promise]", vr = "[object Set]", pr = "[object WeakMap]", yr = "[object DataView]", Un = ae(Ae), Bn = ae(Fe), Vn = ae(Ie), Ln = ae(De), Yn = ae(Ne), ne = Tr; | ||
(Ae && ne(new Ae(new ArrayBuffer(1))) != yr || Fe && ne(new Fe()) != fr || Ie && ne(Ie.resolve()) != dr || De && ne(new De()) != vr || Ne && ne(new Ne()) != pr) && (ne = function(r) { | ||
var a = Tr(r), v = a == Wn ? r.constructor : void 0, l = v ? ae(v) : ""; | ||
var a = Tr(r), v = a == zn ? r.constructor : void 0, l = v ? ae(v) : ""; | ||
if (l) | ||
switch (l) { | ||
case zn: | ||
case Un: | ||
return yr; | ||
case Un: | ||
case Bn: | ||
return fr; | ||
case Bn: | ||
case Vn: | ||
return dr; | ||
case Vn: | ||
case Ln: | ||
return vr; | ||
case Ln: | ||
case Yn: | ||
return pr; | ||
@@ -817,4 +817,4 @@ } | ||
}); | ||
var Yn = Y; | ||
Yn.Uint8Array; | ||
var Gn = Y; | ||
Gn.Uint8Array; | ||
var wr = he, xr = wr ? wr.prototype : void 0; | ||
@@ -828,3 +828,3 @@ xr && xr.valueOf; | ||
br && br.valueOf; | ||
const Jn = "@sencha/reext", Gn = "0.0.36", Kn = "React ReExt", qn = "./dist/ReExt/types.d.ts", Hn = "./dist/reext.es.js", Xn = { | ||
const Jn = "@sencha/reext", Kn = "0.0.37", qn = "React ReExt", Hn = "./dist/ReExt/types.d.ts", Xn = "./dist/reext.es.js", Zn = { | ||
zip: "npm-build-zip --source=dist --destination=zip", | ||
@@ -840,7 +840,7 @@ pack: "npm pack --pack-destination zip", | ||
coverage: "vitest run --coverage" | ||
}, Zn = { | ||
}, Qn = { | ||
name: "Sencha, Inc.", | ||
email: "marcgusmano@gmail.com", | ||
url: "http://marcgusmano.com" | ||
}, Qn = "https://www.sencha.com/products/reext/", ei = [ | ||
}, ei = "https://www.sencha.com/products/reext/", ri = [ | ||
"React", | ||
@@ -851,10 +851,10 @@ "Sencha", | ||
"ReExt" | ||
], ri = "MIT", ti = [ | ||
], ti = "MIT", ni = [ | ||
"dist", | ||
"README.md" | ||
], ni = { | ||
], ii = { | ||
".": { | ||
import: "./dist/reext.es.js" | ||
} | ||
}, ii = { | ||
}, ai = { | ||
production: [ | ||
@@ -870,3 +870,3 @@ ">0.2%", | ||
] | ||
}, ai = { | ||
}, oi = { | ||
env: { | ||
@@ -884,3 +884,3 @@ browser: !0, | ||
} | ||
}, oi = { | ||
}, si = { | ||
"@babel/generator": "^7.25.0", | ||
@@ -893,18 +893,18 @@ "@babel/parser": "^7.25.0", | ||
"eslint-plugin-react-refresh": "^0.4.9" | ||
}, si = { | ||
}, Cr = { | ||
name: Jn, | ||
version: Gn, | ||
description: Kn, | ||
types: qn, | ||
module: Hn, | ||
scripts: Xn, | ||
author: Zn, | ||
homepage: Qn, | ||
keywords: ei, | ||
license: ri, | ||
files: ti, | ||
exports: ni, | ||
browserslist: ii, | ||
eslintConfig: ai, | ||
devDependencies: oi | ||
version: Kn, | ||
description: qn, | ||
types: Hn, | ||
module: Xn, | ||
scripts: Zn, | ||
author: Qn, | ||
homepage: ei, | ||
keywords: ri, | ||
license: ti, | ||
files: ni, | ||
exports: ii, | ||
browserslist: ai, | ||
eslintConfig: oi, | ||
devDependencies: si | ||
}; | ||
@@ -992,3 +992,3 @@ async function wi() { | ||
async function fi(r) { | ||
const a = async (D, J, f) => await new Promise((o) => { | ||
const a = async (D, G, f) => await new Promise((o) => { | ||
window.Ext.onReady(function() { | ||
@@ -1058,7 +1058,7 @@ return window.Ext.ReExtLocation = f, window.Ext.ReExtTheme = D, window.Ext.ReExtLi = !0, o(1); | ||
t === "classic" && !P.includes(i) && console.warn(`${i} is a custom theme in ${t} toolkit for SDK version ${b}`); | ||
var G = !1; | ||
(x.calendar === !0 || x.d3 === !0 || x.exporter === !0 || x.pivot === !0 || x.pivotd3 === !0 || x.pivotlocale === !0 || x.froalaeditor === !0) && (G = !0); | ||
var J = !1; | ||
(x.calendar === !0 || x.d3 === !0 || x.exporter === !0 || x.pivot === !0 || x.pivotd3 === !0 || x.pivotlocale === !0 || x.froalaeditor === !0) && (J = !0); | ||
var A = V + "/build"; | ||
if (b.slice(-1) === "c") { | ||
await v(`${A}/ext-${b}-toolkit-${t}-sdk.js`), await l(`${A}/ext-${b}-theme-${i}-sdk.css`), G === !0 && (await v(`${V}/ext-${b}-toolkit-${t}-addons.js`), await l(`${V}/ext-${b}-theme-${i}-addons.css`)), await a(i, j, C); | ||
await v(`${A}/ext-${b}-toolkit-${t}-sdk.js`), await l(`${A}/ext-${b}-theme-${i}-sdk.css`), J === !0 && (await v(`${V}/ext-${b}-toolkit-${t}-addons.js`), await l(`${V}/ext-${b}-theme-${i}-addons.css`)), await a(i, j, C); | ||
return; | ||
@@ -1071,3 +1071,3 @@ } | ||
} | ||
if (G === !0) { | ||
if (J === !0) { | ||
var u; | ||
@@ -1077,4 +1077,4 @@ R = R + "/packages", x.calendar === !0 && (u = "calendar", await v(`${R}/${u}/build/${t}/${u}${c}.js`), t === "modern" && i === "ios" || b === "7.0.0.156" ? await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`) : i !== "gray" && i !== "graphite" && (t === "classic" && i !== "material" ? await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`) : await l(`${R}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))), x.d3 === !0 && (u = "d3", await v(`${R}/${u}/build/${t}/${u}${c}.js`), t === "modern" && (i === "ios" || i === "material") ? await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`) : i !== "gray" && i !== "graphite" && (t === "classic" && i !== "material" ? await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`) : await l(`${R}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))), x.exporter === !0 && (u = "exporter", await v(`${R}/${u}/build/${t}/${u}${c}.js`), await l(`${R}/${u}/build/${t}/resources/${u}-all${c}.css`)), x.pivot === !0 && (u = "pivot", await v(`${R}/${u}/build/${t}/${u}${c}.js`), t === "modern" && (i === "ios" || i === "material") ? await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`) : i !== "gray" && i !== "graphite" && (t === "classic" && i !== "material" ? await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`) : await l(`${R}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))), x.pivotd3 === !0 && (u = "pivot-d3", await v(`${R}/${u}/build/${t}/${u}${c}.js`), t === "modern" && (i === "ios" || i === "material") ? await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`) : i !== "gray" && i !== "graphite" && (t === "classic" && i !== "material" ? await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`) : await l(`${R}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))), x.froalaeditor === !0 && (u = "froala-editor", await v(`${R}/${u}/build/${t}/${u}${c}.js`), await l(`${R}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`), await v(`${R}/${u}/development/froalaeditor.pkgd.js`), await l(`${R}/${u}/development/froalaeditor.pkgd.css`)), x.pivotlocale; | ||
async function K(D) { | ||
var J = D.location; | ||
if (J === "local") { | ||
var G = D.location; | ||
if (G === "local") { | ||
var f = D.overrides; | ||
@@ -1199,3 +1199,3 @@ if (f === void 0 && (f = !1), f !== !0 && (f = !1), f === !0) { | ||
window.Ext.isClassic === !0 ? N = "Ext.container.Container" : N = "Ext.Container", d = window.Ext.create(N, { cls: "ReExtWidgetRoot" }), g.add(d); | ||
var q = tt(p, { ReExtParent: g }); | ||
var q = nt(p, { ReExtParent: g }); | ||
window.Ext.isClassic === !0 ? S = createPortal(q, d.el.dom) : S = createPortal(q, d.innerElement.dom), w.push(S); | ||
@@ -1288,6 +1288,6 @@ } | ||
}, [r.config]); | ||
var P = "", G = "", A = "", Z = ""; | ||
var P = "", J = "", A = "", Z = ""; | ||
if (!(typeof window === void 0 || typeof window > "u")) { | ||
if (window.Ext !== void 0 && window.Ext.versions !== null && window.Ext.versions !== void 0) { | ||
G = window.Ext.versions.core.version, Z = window.Ext.ReExtTheme, P = window.Ext.ReExtLocation; | ||
J = window.Ext.versions.core.version, Z = window.Ext.ReExtTheme, P = window.Ext.ReExtLocation; | ||
var u = window.Ext.isClassic; | ||
@@ -1309,3 +1309,3 @@ u === !0 ? A = "classic" : A = "modern"; | ||
"React ReExt ", | ||
packageJson.version, | ||
Cr.version, | ||
which | ||
@@ -1320,3 +1320,3 @@ ] }) }) }), | ||
/* @__PURE__ */ m.jsxs("b", { children: [ | ||
G, | ||
J, | ||
" (", | ||
@@ -1345,3 +1345,3 @@ P, | ||
r.className !== void 0 && (D = r.className); | ||
var J = "relative"; | ||
var G = "relative"; | ||
return r.xtype === "window" ? null : /* @__PURE__ */ m.jsxs( | ||
@@ -1353,3 +1353,3 @@ "div", | ||
className: D + " fill", | ||
style: { ...r.style, flex: K, position: J, xbackground: "white", display: "flex", overflow: "hidden", xborder: "0px solid red" }, | ||
style: { ...r.style, flex: K, position: G, xbackground: "white", display: "flex", overflow: "hidden", xborder: "0px solid red" }, | ||
ref: E, | ||
@@ -1402,3 +1402,3 @@ children: [ | ||
return /* @__PURE__ */ m.jsxs("div", { className: "trialdialogroot", style: { boxSizing: "border-box", display: "flex", justifyContent: "center", alignItems: "center", border: "0px solid blue", position: "relative", height: "100vh", width: "100vw" }, children: [ | ||
/* @__PURE__ */ m.jsx(ui, { setTrial: i, packageJson: si }), | ||
/* @__PURE__ */ m.jsx(ui, { setTrial: i, packageJson: Cr }), | ||
r | ||
@@ -1405,0 +1405,0 @@ ] }); |
@@ -9,3 +9,3 @@ (function(L,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],P):(L=typeof globalThis<"u"?globalThis:L||self,P(L.ReExt={},L.React))})(this,function(L,P){"use strict";var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},be={exports:{}},se={};/** | ||
* LICENSE file in the root directory of this source tree. | ||
*/var We;function _r(){if(We)return se;We=1;var r=P,a=Symbol.for("react.element"),v=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function x(c,R,T){var C,E={},D=null,b=null;T!==void 0&&(D=""+T),R.key!==void 0&&(D=""+R.key),R.ref!==void 0&&(b=R.ref);for(C in R)l.call(R,C)&&!i.hasOwnProperty(C)&&(E[C]=R[C]);if(c&&c.defaultProps)for(C in R=c.defaultProps,R)E[C]===void 0&&(E[C]=R[C]);return{$$typeof:a,type:c,key:D,ref:b,props:E,_owner:t.current}}return se.Fragment=v,se.jsx=x,se.jsxs=x,se}var le={};/** | ||
*/var We;function Tr(){if(We)return se;We=1;var r=P,a=Symbol.for("react.element"),v=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function x(c,R,T){var C,E={},D=null,b=null;T!==void 0&&(D=""+T),R.key!==void 0&&(D=""+R.key),R.ref!==void 0&&(b=R.ref);for(C in R)l.call(R,C)&&!i.hasOwnProperty(C)&&(E[C]=R[C]);if(c&&c.defaultProps)for(C in R=c.defaultProps,R)E[C]===void 0&&(E[C]=R[C]);return{$$typeof:a,type:c,key:D,ref:b,props:E,_owner:t.current}}return se.Fragment=v,se.jsx=x,se.jsxs=x,se}var le={};/** | ||
* @license React | ||
@@ -18,11 +18,11 @@ * react-jsx-runtime.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var ze;function Tr(){return ze||(ze=1,process.env.NODE_ENV!=="production"&&function(){var r=P,a=Symbol.for("react.element"),v=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),c=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),J=Symbol.iterator,j="@@iterator";function ee(e){if(e===null||typeof e!="object")return null;var n=J&&e[J]||e[j];return typeof n=="function"?n:null}var B=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){{for(var n=arguments.length,s=new Array(n>1?n-1:0),y=1;y<n;y++)s[y-1]=arguments[y];H("error",e,s)}}function H(e,n,s){{var y=B.ReactDebugCurrentFrame,_=y.getStackAddendum();_!==""&&(n+="%s",s=s.concat([_]));var O=s.map(function($){return String($)});O.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,O)}}var F=!1,re=!1,u=!1,X=!1,N=!1,K;K=Symbol.for("react.module.reference");function f(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===i||N||e===t||e===T||e===C||X||e===b||F||re||u||typeof e=="object"&&e!==null&&(e.$$typeof===D||e.$$typeof===E||e.$$typeof===x||e.$$typeof===c||e.$$typeof===R||e.$$typeof===K||e.getModuleId!==void 0))}function m(e,n,s){var y=e.displayName;if(y)return y;var _=n.displayName||n.name||"";return _!==""?s+"("+_+")":s}function w(e){return e.displayName||"Context"}function o(e){if(e==null)return null;if(typeof e.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case v:return"Portal";case i:return"Profiler";case t:return"StrictMode";case T:return"Suspense";case C:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var n=e;return w(n)+".Consumer";case x:var s=e;return w(s._context)+".Provider";case R:return m(e,e.render,"ForwardRef");case E:var y=e.displayName||null;return y!==null?y:o(e.type)||"Memo";case D:{var _=e,O=_._payload,$=_._init;try{return o($(O))}catch{return null}}}return null}var p=Object.assign,d=0,S,W,M,Z,Q,G,fr;function dr(){}dr.__reactDisabledLog=!0;function Tn(){{if(d===0){S=console.log,W=console.info,M=console.warn,Z=console.error,Q=console.group,G=console.groupCollapsed,fr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:dr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}d++}}function Cn(){{if(d--,d===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:p({},e,{value:S}),info:p({},e,{value:W}),warn:p({},e,{value:M}),error:p({},e,{value:Z}),group:p({},e,{value:Q}),groupCollapsed:p({},e,{value:G}),groupEnd:p({},e,{value:fr})})}d<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=B.ReactCurrentDispatcher,Pe;function xe(e,n,s){{if(Pe===void 0)try{throw Error()}catch(_){var y=_.stack.trim().match(/\n( *(at )?)/);Pe=y&&y[1]||""}return` | ||
`+Pe+e}}var ke=!1,ge;{var On=typeof WeakMap=="function"?WeakMap:Map;ge=new On}function vr(e,n){if(!e||ke)return"";{var s=ge.get(e);if(s!==void 0)return s}var y;ke=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=Oe.current,Oe.current=null,Tn();try{if(n){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(U){y=U}Reflect.construct(e,[],$)}else{try{$.call()}catch(U){y=U}e.call($.prototype)}}else{try{throw Error()}catch(U){y=U}e()}}catch(U){if(U&&y&&typeof U.stack=="string"){for(var h=U.stack.split(` | ||
*/var ze;function Cr(){return ze||(ze=1,process.env.NODE_ENV!=="production"&&function(){var r=P,a=Symbol.for("react.element"),v=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),c=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),G=Symbol.iterator,j="@@iterator";function ee(e){if(e===null||typeof e!="object")return null;var n=G&&e[G]||e[j];return typeof n=="function"?n:null}var B=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(e){{for(var n=arguments.length,s=new Array(n>1?n-1:0),y=1;y<n;y++)s[y-1]=arguments[y];H("error",e,s)}}function H(e,n,s){{var y=B.ReactDebugCurrentFrame,_=y.getStackAddendum();_!==""&&(n+="%s",s=s.concat([_]));var O=s.map(function($){return String($)});O.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,O)}}var F=!1,re=!1,u=!1,X=!1,N=!1,K;K=Symbol.for("react.module.reference");function f(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===i||N||e===t||e===T||e===C||X||e===b||F||re||u||typeof e=="object"&&e!==null&&(e.$$typeof===D||e.$$typeof===E||e.$$typeof===x||e.$$typeof===c||e.$$typeof===R||e.$$typeof===K||e.getModuleId!==void 0))}function m(e,n,s){var y=e.displayName;if(y)return y;var _=n.displayName||n.name||"";return _!==""?s+"("+_+")":s}function w(e){return e.displayName||"Context"}function o(e){if(e==null)return null;if(typeof e.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case v:return"Portal";case i:return"Profiler";case t:return"StrictMode";case T:return"Suspense";case C:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var n=e;return w(n)+".Consumer";case x:var s=e;return w(s._context)+".Provider";case R:return m(e,e.render,"ForwardRef");case E:var y=e.displayName||null;return y!==null?y:o(e.type)||"Memo";case D:{var _=e,O=_._payload,$=_._init;try{return o($(O))}catch{return null}}}return null}var p=Object.assign,d=0,S,W,M,Z,Q,J,dr;function vr(){}vr.__reactDisabledLog=!0;function Tn(){{if(d===0){S=console.log,W=console.info,M=console.warn,Z=console.error,Q=console.group,J=console.groupCollapsed,dr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:vr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}d++}}function Cn(){{if(d--,d===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:p({},e,{value:S}),info:p({},e,{value:W}),warn:p({},e,{value:M}),error:p({},e,{value:Z}),group:p({},e,{value:Q}),groupCollapsed:p({},e,{value:J}),groupEnd:p({},e,{value:dr})})}d<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=B.ReactCurrentDispatcher,Pe;function xe(e,n,s){{if(Pe===void 0)try{throw Error()}catch(_){var y=_.stack.trim().match(/\n( *(at )?)/);Pe=y&&y[1]||""}return` | ||
`+Pe+e}}var ke=!1,ge;{var On=typeof WeakMap=="function"?WeakMap:Map;ge=new On}function pr(e,n){if(!e||ke)return"";{var s=ge.get(e);if(s!==void 0)return s}var y;ke=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=Oe.current,Oe.current=null,Tn();try{if(n){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(U){y=U}Reflect.construct(e,[],$)}else{try{$.call()}catch(U){y=U}e.call($.prototype)}}else{try{throw Error()}catch(U){y=U}e()}}catch(U){if(U&&y&&typeof U.stack=="string"){for(var h=U.stack.split(` | ||
`),z=y.stack.split(` | ||
`),A=h.length-1,I=z.length-1;A>=1&&I>=0&&h[A]!==z[I];)I--;for(;A>=1&&I>=0;A--,I--)if(h[A]!==z[I]){if(A!==1||I!==1)do if(A--,I--,I<0||h[A]!==z[I]){var V=` | ||
`+h[A].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),typeof e=="function"&&ge.set(e,V),V}while(A>=1&&I>=0);break}}}finally{ke=!1,Oe.current=O,Cn(),Error.prepareStackTrace=_}var oe=e?e.displayName||e.name:"",te=oe?xe(oe):"";return typeof e=="function"&&ge.set(e,te),te}function Pn(e,n,s){return vr(e,!1)}function kn(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function me(e,n,s){if(e==null)return"";if(typeof e=="function")return vr(e,kn(e));if(typeof e=="string")return xe(e);switch(e){case T:return xe("Suspense");case C:return xe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case R:return Pn(e.render);case E:return me(e.type,n,s);case D:{var y=e,_=y._payload,O=y._init;try{return me(O(_),n,s)}catch{}}}return""}var ue=Object.prototype.hasOwnProperty,pr={},yr=B.ReactDebugCurrentFrame;function he(e){if(e){var n=e._owner,s=me(e.type,e._source,n?n.type:null);yr.setExtraStackFrame(s)}else yr.setExtraStackFrame(null)}function An(e,n,s,y,_){{var O=Function.call.bind(ue);for(var $ in e)if(O(e,$)){var h=void 0;try{if(typeof e[$]!="function"){var z=Error((y||"React class")+": "+s+" type `"+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[$]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}h=e[$](n,$,y,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A){h=A}h&&!(h instanceof Error)&&(he(_),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",s,$,typeof h),he(null)),h instanceof Error&&!(h.message in pr)&&(pr[h.message]=!0,he(_),k("Failed %s type: %s",s,h.message),he(null))}}}var Fn=Array.isArray;function Ae(e){return Fn(e)}function In(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Dn(e){try{return wr(e),!1}catch{return!0}}function wr(e){return""+e}function xr(e){if(Dn(e))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",In(e)),wr(e)}var fe=B.ReactCurrentOwner,Nn={key:!0,ref:!0,__self:!0,__source:!0},gr,mr,Fe;Fe={};function Mn(e){if(ue.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function Wn(e){if(ue.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function zn(e,n){if(typeof e.ref=="string"&&fe.current&&n&&fe.current.stateNode!==n){var s=o(fe.current.type);Fe[s]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',o(fe.current.type),e.ref),Fe[s]=!0)}}function Un(e,n){{var s=function(){gr||(gr=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function Bn(e,n){{var s=function(){mr||(mr=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var Vn=function(e,n,s,y,_,O,$){var h={$$typeof:a,type:e,key:n,ref:s,props:$,_owner:O};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Ln(e,n,s,y,_){{var O,$={},h=null,z=null;s!==void 0&&(xr(s),h=""+s),Wn(n)&&(xr(n.key),h=""+n.key),Mn(n)&&(z=n.ref,zn(n,_));for(O in n)ue.call(n,O)&&!Nn.hasOwnProperty(O)&&($[O]=n[O]);if(e&&e.defaultProps){var A=e.defaultProps;for(O in A)$[O]===void 0&&($[O]=A[O])}if(h||z){var I=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&&Un($,I),z&&Bn($,I)}return Vn(e,h,z,_,y,fe.current,$)}}var Ie=B.ReactCurrentOwner,hr=B.ReactDebugCurrentFrame;function ae(e){if(e){var n=e._owner,s=me(e.type,e._source,n?n.type:null);hr.setExtraStackFrame(s)}else hr.setExtraStackFrame(null)}var De;De=!1;function Ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function br(){{if(Ie.current){var e=o(Ie.current.type);if(e)return` | ||
`+h[A].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),typeof e=="function"&&ge.set(e,V),V}while(A>=1&&I>=0);break}}}finally{ke=!1,Oe.current=O,Cn(),Error.prepareStackTrace=_}var oe=e?e.displayName||e.name:"",te=oe?xe(oe):"";return typeof e=="function"&&ge.set(e,te),te}function Pn(e,n,s){return pr(e,!1)}function kn(e){var n=e.prototype;return!!(n&&n.isReactComponent)}function me(e,n,s){if(e==null)return"";if(typeof e=="function")return pr(e,kn(e));if(typeof e=="string")return xe(e);switch(e){case T:return xe("Suspense");case C:return xe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case R:return Pn(e.render);case E:return me(e.type,n,s);case D:{var y=e,_=y._payload,O=y._init;try{return me(O(_),n,s)}catch{}}}return""}var ue=Object.prototype.hasOwnProperty,yr={},wr=B.ReactDebugCurrentFrame;function he(e){if(e){var n=e._owner,s=me(e.type,e._source,n?n.type:null);wr.setExtraStackFrame(s)}else wr.setExtraStackFrame(null)}function An(e,n,s,y,_){{var O=Function.call.bind(ue);for(var $ in e)if(O(e,$)){var h=void 0;try{if(typeof e[$]!="function"){var z=Error((y||"React class")+": "+s+" type `"+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[$]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}h=e[$](n,$,y,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A){h=A}h&&!(h instanceof Error)&&(he(_),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",s,$,typeof h),he(null)),h instanceof Error&&!(h.message in yr)&&(yr[h.message]=!0,he(_),k("Failed %s type: %s",s,h.message),he(null))}}}var Fn=Array.isArray;function Ae(e){return Fn(e)}function In(e){{var n=typeof Symbol=="function"&&Symbol.toStringTag,s=n&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Dn(e){try{return xr(e),!1}catch{return!0}}function xr(e){return""+e}function gr(e){if(Dn(e))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",In(e)),xr(e)}var fe=B.ReactCurrentOwner,Nn={key:!0,ref:!0,__self:!0,__source:!0},mr,hr,Fe;Fe={};function Mn(e){if(ue.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return e.ref!==void 0}function Wn(e){if(ue.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function zn(e,n){if(typeof e.ref=="string"&&fe.current&&n&&fe.current.stateNode!==n){var s=o(fe.current.type);Fe[s]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',o(fe.current.type),e.ref),Fe[s]=!0)}}function Un(e,n){{var s=function(){mr||(mr=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function Bn(e,n){{var s=function(){hr||(hr=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",n))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var Vn=function(e,n,s,y,_,O,$){var h={$$typeof:a,type:e,key:n,ref:s,props:$,_owner:O};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Ln(e,n,s,y,_){{var O,$={},h=null,z=null;s!==void 0&&(gr(s),h=""+s),Wn(n)&&(gr(n.key),h=""+n.key),Mn(n)&&(z=n.ref,zn(n,_));for(O in n)ue.call(n,O)&&!Nn.hasOwnProperty(O)&&($[O]=n[O]);if(e&&e.defaultProps){var A=e.defaultProps;for(O in A)$[O]===void 0&&($[O]=A[O])}if(h||z){var I=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&&Un($,I),z&&Bn($,I)}return Vn(e,h,z,_,y,fe.current,$)}}var Ie=B.ReactCurrentOwner,br=B.ReactDebugCurrentFrame;function ae(e){if(e){var n=e._owner,s=me(e.type,e._source,n?n.type:null);br.setExtraStackFrame(s)}else br.setExtraStackFrame(null)}var De;De=!1;function Ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function $r(){{if(Ie.current){var e=o(Ie.current.type);if(e)return` | ||
Check the render method of \``+e+"`."}return""}}function Yn(e){return""}var $r={};function Jn(e){{var n=br();if(!n){var s=typeof e=="string"?e:e.displayName||e.name;s&&(n=` | ||
Check the render method of \``+e+"`."}return""}}function Yn(e){return""}var Er={};function Gn(e){{var n=$r();if(!n){var s=typeof e=="string"?e:e.displayName||e.name;s&&(n=` | ||
Check the top-level render call using <`+s+">.")}return n}}function Er(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=Jn(n);if($r[s])return;$r[s]=!0;var y="";e&&e._owner&&e._owner!==Ie.current&&(y=" It was passed a child from "+o(e._owner.type)+"."),ae(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,y),ae(null)}}function Rr(e,n){{if(typeof e!="object")return;if(Ae(e))for(var s=0;s<e.length;s++){var y=e[s];Ne(y)&&Er(y,n)}else if(Ne(e))e._store&&(e._store.validated=!0);else if(e){var _=ee(e);if(typeof _=="function"&&_!==e.entries)for(var O=_.call(e),$;!($=O.next()).done;)Ne($.value)&&Er($.value,n)}}}function Gn(e){{var n=e.type;if(n==null||typeof n=="string")return;var s;if(typeof n=="function")s=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===R||n.$$typeof===E))s=n.propTypes;else return;if(s){var y=o(n);An(s,e.props,"prop",y,e)}else if(n.PropTypes!==void 0&&!De){De=!0;var _=o(n);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kn(e){{for(var n=Object.keys(e.props),s=0;s<n.length;s++){var y=n[s];if(y!=="children"&&y!=="key"){ae(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),ae(null);break}}e.ref!==null&&(ae(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}var jr={};function Sr(e,n,s,y,_,O){{var $=f(e);if(!$){var h="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var z=Yn();z?h+=z:h+=br();var A;e===null?A="null":Ae(e)?A="array":e!==void 0&&e.$$typeof===a?(A="<"+(o(e.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):A=typeof e,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,h)}var I=Ln(e,n,s,_,O);if(I==null)return I;if($){var V=n.children;if(V!==void 0)if(y)if(Ae(V)){for(var oe=0;oe<V.length;oe++)Rr(V[oe],e);Object.freeze&&Object.freeze(V)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Rr(V,e)}if(ue.call(n,"key")){var te=o(e),U=Object.keys(n).filter(function(ei){return ei!=="key"}),Me=U.length>0?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}";if(!jr[te+Me]){var qn=U.length>0?"{"+U.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX: | ||
Check the top-level render call using <`+s+">.")}return n}}function Rr(e,n){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=Gn(n);if(Er[s])return;Er[s]=!0;var y="";e&&e._owner&&e._owner!==Ie.current&&(y=" It was passed a child from "+o(e._owner.type)+"."),ae(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,y),ae(null)}}function jr(e,n){{if(typeof e!="object")return;if(Ae(e))for(var s=0;s<e.length;s++){var y=e[s];Ne(y)&&Rr(y,n)}else if(Ne(e))e._store&&(e._store.validated=!0);else if(e){var _=ee(e);if(typeof _=="function"&&_!==e.entries)for(var O=_.call(e),$;!($=O.next()).done;)Ne($.value)&&Rr($.value,n)}}}function Jn(e){{var n=e.type;if(n==null||typeof n=="string")return;var s;if(typeof n=="function")s=n.propTypes;else if(typeof n=="object"&&(n.$$typeof===R||n.$$typeof===E))s=n.propTypes;else return;if(s){var y=o(n);An(s,e.props,"prop",y,e)}else if(n.PropTypes!==void 0&&!De){De=!0;var _=o(n);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof n.getDefaultProps=="function"&&!n.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kn(e){{for(var n=Object.keys(e.props),s=0;s<n.length;s++){var y=n[s];if(y!=="children"&&y!=="key"){ae(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),ae(null);break}}e.ref!==null&&(ae(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}var Sr={};function _r(e,n,s,y,_,O){{var $=f(e);if(!$){var h="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var z=Yn();z?h+=z:h+=$r();var A;e===null?A="null":Ae(e)?A="array":e!==void 0&&e.$$typeof===a?(A="<"+(o(e.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):A=typeof e,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,h)}var I=Ln(e,n,s,_,O);if(I==null)return I;if($){var V=n.children;if(V!==void 0)if(y)if(Ae(V)){for(var oe=0;oe<V.length;oe++)jr(V[oe],e);Object.freeze&&Object.freeze(V)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else jr(V,e)}if(ue.call(n,"key")){var te=o(e),U=Object.keys(n).filter(function(ei){return ei!=="key"}),Me=U.length>0?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}";if(!Sr[te+Me]){var qn=U.length>0?"{"+U.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX: | ||
let props = %s; | ||
@@ -32,2 +32,2 @@ <%s {...props} /> | ||
let props = %s; | ||
<%s key={someKey} {...props} />`,Me,te,qn,te),jr[te+Me]=!0}}return e===l?Kn(I):Gn(I),I}}function Hn(e,n,s){return Sr(e,n,s,!0)}function Xn(e,n,s){return Sr(e,n,s,!1)}var Zn=Xn,Qn=Hn;le.Fragment=l,le.jsx=Zn,le.jsxs=Qn}()),le}process.env.NODE_ENV==="production"?be.exports=_r():be.exports=Tr();var g=be.exports,Cr=typeof de=="object"&&de&&de.Object===Object&&de,Ue=Cr,Or=Ue,Pr=typeof self=="object"&&self&&self.Object===Object&&self,kr=Or||Pr||Function("return this")(),Y=kr,Ar=Y,Fr=Ar.Symbol,ve=Fr,Be=ve,Ve=Object.prototype,Ir=Ve.hasOwnProperty,Dr=Ve.toString,ce=Be?Be.toStringTag:void 0;function Nr(r){var a=Ir.call(r,ce),v=r[ce];try{r[ce]=void 0;var l=!0}catch{}var t=Dr.call(r);return l&&(a?r[ce]=v:delete r[ce]),t}var Mr=Nr,Wr=Object.prototype,zr=Wr.toString;function Ur(r){return zr.call(r)}var Br=Ur,Le=ve,Vr=Mr,Lr=Br,Yr="[object Null]",Jr="[object Undefined]",Ye=Le?Le.toStringTag:void 0;function Gr(r){return r==null?r===void 0?Jr:Yr:Ye&&Ye in Object(r)?Vr(r):Lr(r)}var $e=Gr;function Kr(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}var Je=Kr,Hr=$e,Xr=Je,Zr="[object AsyncFunction]",Qr="[object Function]",qr="[object GeneratorFunction]",et="[object Proxy]";function rt(r){if(!Xr(r))return!1;var a=Hr(r);return a==Qr||a==qr||a==Zr||a==et}var tt=rt,nt=Y,it=nt["__core-js_shared__"],at=it,Ee=at,Ge=function(){var r=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function ot(r){return!!Ge&&Ge in r}var st=ot,lt=Function.prototype,ct=lt.toString;function ut(r){if(r!=null){try{return ct.call(r)}catch{}try{return r+""}catch{}}return""}var Ke=ut,ft=tt,dt=st,vt=Je,pt=Ke,yt=/[\\^$.*+?()[\]{}|]/g,wt=/^\[object .+?Constructor\]$/,xt=Function.prototype,gt=Object.prototype,mt=xt.toString,ht=gt.hasOwnProperty,bt=RegExp("^"+mt.call(ht).replace(yt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $t(r){if(!vt(r)||dt(r))return!1;var a=ft(r)?bt:wt;return a.test(pt(r))}var Et=$t;function Rt(r,a){return r==null?void 0:r[a]}var jt=Rt,St=Et,_t=jt;function Tt(r,a){var v=_t(r,a);return St(v)?v:void 0}var q=Tt,Ct=q,Ot=Y,Pt=Ct(Ot,"Map"),kt=Pt,At=q;At(Object,"create");var Ft=q;(function(){try{var r=Ft(Object,"defineProperty");return r({},"",{}),r}catch{}})();function It(r){return r!=null&&typeof r=="object"}var He=It,Dt=$e,Nt=He,Mt="[object Arguments]";function Wt(r){return Nt(r)&&Dt(r)==Mt}var zt=Wt,Xe=zt,Ut=He,Ze=Object.prototype,Bt=Ze.hasOwnProperty,Vt=Ze.propertyIsEnumerable;Xe(function(){return arguments}());var pe={exports:{}};function Lt(){return!1}var Yt=Lt;pe.exports,function(r,a){var v=Y,l=Yt,t=a&&!a.nodeType&&a,i=t&&!0&&r&&!r.nodeType&&r,x=i&&i.exports===t,c=x?v.Buffer:void 0,R=c?c.isBuffer:void 0,T=R||l;r.exports=T}(pe,pe.exports),pe.exports;var ye={exports:{}};ye.exports,function(r,a){var v=Ue,l=a&&!a.nodeType&&a,t=l&&!0&&r&&!r.nodeType&&r,i=t&&t.exports===l,x=i&&v.process,c=function(){try{var R=t&&t.require&&t.require("util").types;return R||x&&x.binding&&x.binding("util")}catch{}}();r.exports=c}(ye,ye.exports);var Re=ye.exports,Qe=Re;Qe&&Qe.isTypedArray;var we={exports:{}};we.exports,function(r,a){var v=Y,l=a&&!a.nodeType&&a,t=l&&!0&&r&&!r.nodeType&&r,i=t&&t.exports===l,x=i?v.Buffer:void 0,c=x?x.allocUnsafe:void 0;function R(T,C){if(C)return T.slice();var E=T.length,D=c?c(E):new T.constructor(E);return T.copy(D),D}r.exports=R}(we,we.exports),we.exports;var Jt=q,Gt=Y,Kt=Jt(Gt,"DataView"),Ht=Kt,Xt=q,Zt=Y,Qt=Xt(Zt,"Promise"),qt=Qt,en=q,rn=Y,tn=en(rn,"Set"),nn=tn,an=q,on=Y,sn=an(on,"WeakMap"),ln=sn,je=Ht,Se=kt,_e=qt,Te=nn,Ce=ln,qe=$e,ne=Ke,er="[object Map]",cn="[object Object]",rr="[object Promise]",tr="[object Set]",nr="[object WeakMap]",ir="[object DataView]",un=ne(je),fn=ne(Se),dn=ne(_e),vn=ne(Te),pn=ne(Ce),ie=qe;(je&&ie(new je(new ArrayBuffer(1)))!=ir||Se&&ie(new Se)!=er||_e&&ie(_e.resolve())!=rr||Te&&ie(new Te)!=tr||Ce&&ie(new Ce)!=nr)&&(ie=function(r){var a=qe(r),v=a==cn?r.constructor:void 0,l=v?ne(v):"";if(l)switch(l){case un:return ir;case fn:return er;case dn:return rr;case vn:return tr;case pn:return nr}return a});var yn=Y;yn.Uint8Array;var ar=ve,or=ar?ar.prototype:void 0;or&&or.valueOf;var sr=Re;sr&&sr.isMap;var lr=Re;lr&&lr.isSet;var cr=ve,ur=cr?cr.prototype:void 0;ur&&ur.valueOf;const wn={name:"@sencha/reext",version:"0.0.36",description:"React ReExt",types:"./dist/ReExt/types.d.ts",module:"./dist/reext.es.js",scripts:{zip:"npm-build-zip --source=dist --destination=zip",pack:"npm pack --pack-destination zip",prepublishOnly:"node ./public/scripts/prepublish.js",postpublish:"node ./public/scripts/postpublish.js",dev:"vite",build2:"vite build -m development",build:"vite build",test:"vitest run",watch:"vitest",coverage:"vitest run --coverage"},author:{name:"Sencha, Inc.",email:"marcgusmano@gmail.com",url:"http://marcgusmano.com"},homepage:"https://www.sencha.com/products/reext/",keywords:["React","Sencha","ExtJS","Components","ReExt"],license:"MIT",files:["dist","README.md"],exports:{".":{import:"./dist/reext.es.js"}},browserslist:{production:[">0.2%","not dead","not op_mini all"],development:["last 1 chrome version","last 1 firefox version","last 1 safari version"]},eslintConfig:{env:{browser:!0,node:!0,es2020:!0},extends:["eslint:recommended","plugin:react/recommended"],parserOptions:{sourceType:"module"}},devDependencies:{"@babel/generator":"^7.25.0","@babel/parser":"^7.25.0","@vitejs/plugin-react-swc":"^3.7.0",eslint:"8.57.0","eslint-plugin-react":"^7.35.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"^0.4.9"}};async function xn(){if(typeof window===void 0||typeof window>"u")return;function r(a){a.style.width="100%",a.style.height="100%",a.style.margin="0",a.style.padding="0",a.style.padding="0",a.style.boxSizing="border-box",a.style.overflow="hidden"}document.documentElement&&r(document.documentElement),document.body&&r(document.body),document.getElementById("root")&&r(document.getElementById("root"))}function gn(r,a=3){return r.split("").map(v=>{const l=v.charCodeAt(0);if(l>=65&&l<=90||l>=97&&l<=122){const t=l>=97?97:65;return String.fromCharCode((l-t+a)%26+t)}return v}).join("")}const mn=r=>{try{let D=function(b,J=3){var j=gn(b,26-J);return j};var a=atob(r),v=new Uint8Array(a.length);for(let b=0;b<a.length;b++)v[b]=a.charCodeAt(b);var l=new TextDecoder("ascii").decode(v),t=D(l),i=t.split("|"),x=i[0],c=i[1],R=i[2],T=new Date(parseInt(R)),C=T.toISOString().split("T")[0],E={e:x,t:c,d:C};return E}catch{return E={e:"",t:"bad",d:""}}};function hn({setTrial:r,packageJson:a}){return g.jsx("div",{className:"trialdialog",style:{zIndex:2e5,fontSize:"28px",background:"rgb(211,211,211,.4)",color:"black",display:"flex",flexDirection:"column",position:"absolute",left:"50%",width:"100%",height:"100%",transform:"translateX(-50%)",padding:"10px 10px 10px 10px",border:"1px solid black"},children:g.jsxs("div",{style:{height:"100%",display:"flex",padding:"10px 10px 10px 10px",flexDirection:"column",margin:"40px",borderRadius:"5px",border:"1px solid gray",background:"white"},children:[g.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[g.jsx("img",{style:{width:160},src:"../ReExt/ReExt.png"}),g.jsxs("div",{style:{margin:"0 0 0 20px"},children:["Welcome to the React ReExt v",a.version," Trial"]})]}),g.jsxs("div",{style:{margin:"10px 0 10px 0",fontSize:"18px"},children:["This is a 30 day trial version of React ReExt.",g.jsx("br",{}),"Without a trial key, this dialog will appear.",g.jsx("br",{}),g.jsx("br",{}),"To have a trial key emailed to you, fill in this form and click 'Get Trial Key'."]}),g.jsx("div",{style:{xwidth:"100%",flex:1,display:"flex",border:"0px solid red"},children:g.jsx("iframe",{style:{width:"100%",margin:"0 0 10px 0",flex:1,border:"0px solid lightgray"},src:"http://marcgusmano.com/eloqua/index.html"})}),g.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end"},children:g.jsx("button",{style:{fontSize:"18px",padding:"5px 5px 5px 5px"},onClick:()=>{r(!1)},children:"Close"})})]})})}async function bn(r){const a=async(N,K,f)=>await new Promise(o=>{window.Ext.onReady(function(){return window.Ext.ReExtLocation=f,window.Ext.ReExtTheme=N,window.Ext.ReExtLi=!0,o(1)})}),v=async N=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((m,w)=>{let o=document.getElementsByTagName("HEAD")[0];var p=!1;for(let d=0;d<o.childNodes.length;d++)o.childNodes[d].src===N&&(p=!0);if(p===!1){const d=document.createElement("script");d.addEventListener("load",()=>m(1)),d.addEventListener("error",()=>{var S=`${N} (js) could not be loaded - copy the node_modules/@sencha/reext/ext folder to the project's public folder`;console.error(S),w(S)}),d.src=N,o.appendChild(d)}}),l=async N=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((m,w)=>{let o=document.getElementsByTagName("HEAD")[0],p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.href=N,p.addEventListener("error",()=>{var d=`${N} (css) could not be loaded - copy the node_modules/@sencha/reext/ext folder to the project's public folder`;return console.error(d),w(d)}),p.addEventListener("load",()=>m(1)),o.appendChild(p)});var t=r.toolkit;(t==null||t==="")&&(t="modern");var i=r.theme;(i==null||i==="")&&(i="material");var x=r.packages;x===void 0&&(x={charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1});var c=r.debug,R=r.license,T=r.urlbase,C=r.location;(C==="remote"||C===null)&&(T="https://reextdemo.vercel.app/");var E=r.rtl;E===!1||E===void 0?E="":E="-rtl";var D=r.locale;D===void 0&&(D="en");var b=r.sdkversion;switch(b){case"7.0.0":b=b+".156";break;case"7.1.0":b=b+".46";break;case"7.2.0":case"7.3.0":case"7.3.1":case"7.4.0":case"7.5.0":case"7.5.1":case"7.6.0":case"7.7.0":case"7.8.0":break;default:throw`SDK version ${b} is not valid`}var J=T+"ext-"+b,j=T+"ext-addons-"+b;c===!0?c="-debug":c="";var ee="";t==="modern"&&(ee="-modern");var B=["ios","material","neptune","triton"];if(t==="modern"&&!B.includes(i))throw`${i} theme is not in ${t} toolkit for SDK version ${b}`;var k=["classic","crisp","graphite","gray","material","neptune","triton"];t==="classic"&&!k.includes(i)&&console.warn(`${i} is a custom theme in ${t} toolkit for SDK version ${b}`);var H=!1;(x.calendar===!0||x.d3===!0||x.exporter===!0||x.pivot===!0||x.pivotd3===!0||x.pivotlocale===!0||x.froalaeditor===!0)&&(H=!0);var F=J+"/build";if(b.slice(-1)==="c"){await v(`${F}/ext-${b}-toolkit-${t}-sdk.js`),await l(`${F}/ext-${b}-theme-${i}-sdk.css`),H===!0&&(await v(`${J}/ext-${b}-toolkit-${t}-addons.js`),await l(`${J}/ext-${b}-theme-${i}-addons.css`)),await a(i,R,C);return}if(await v(`${F}/ext${ee}-all${E}${c}.js`),await l(`${F}/${t}/theme-${i}/resources/theme-${i}-all${E}.css`),x.fontawesome===!0&&await l(`${F}/packages/font-awesome/resources/font-awesome-all${c}.css`),v(`${F}/${t}/locale/locale-${D}${c}.js`),x.ux===!0&&(await v(`${F}/packages/ux/${t}/ux${c}.js`),b==="7.0.0"&&t==="modern"&&i==="neptune"&&await l(`${F}/packages/ux/${t}/${t}-${i}/resources/ux-all${c}.css`),b==="7.0.0"&&t==="classic"&&await l(`${F}/packages/ux/${t}/${i}/resources/ux-all${c}.css`),b!=="7.0.0"&&t==="classic"&&i==="material"&&await l(`${F}/packages/ux/${t}/${t}-${i}/resources/ux-all${c}.css`),b!=="7.0.0"&&t==="classic"&&i!=="material"&&i!=="gray"&&await l(`${F}/packages/ux/${t}/${i}/resources/ux-all${c}.css`)),x.charts===!0){await v(`${F}/packages/charts/${t}/charts${c}.js`);var re=!0;(t==="modern"&&i==="ios"&&b==="7.0.0"||i==="gray")&&(re=!1),re===!0&&(t==="classic"&&i!=="material"?await l(`${F}/packages/charts/${t}/${i}/resources/charts-all${c}.css`):await l(`${F}/packages/charts/${t}/${t}-${i}/resources/charts-all${c}.css`))}if(H===!0){var u;j=j+"/packages",x.calendar===!0&&(u="calendar",await v(`${j}/${u}/build/${t}/${u}${c}.js`),t==="modern"&&i==="ios"||b==="7.0.0.156"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):i!=="gray"&&i!=="graphite"&&(t==="classic"&&i!=="material"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):await l(`${j}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))),x.d3===!0&&(u="d3",await v(`${j}/${u}/build/${t}/${u}${c}.js`),t==="modern"&&(i==="ios"||i==="material")?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):i!=="gray"&&i!=="graphite"&&(t==="classic"&&i!=="material"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):await l(`${j}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))),x.exporter===!0&&(u="exporter",await v(`${j}/${u}/build/${t}/${u}${c}.js`),await l(`${j}/${u}/build/${t}/resources/${u}-all${c}.css`)),x.pivot===!0&&(u="pivot",await v(`${j}/${u}/build/${t}/${u}${c}.js`),t==="modern"&&(i==="ios"||i==="material")?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):i!=="gray"&&i!=="graphite"&&(t==="classic"&&i!=="material"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):await l(`${j}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))),x.pivotd3===!0&&(u="pivot-d3",await v(`${j}/${u}/build/${t}/${u}${c}.js`),t==="modern"&&(i==="ios"||i==="material")?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):i!=="gray"&&i!=="graphite"&&(t==="classic"&&i!=="material"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):await l(`${j}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))),x.froalaeditor===!0&&(u="froala-editor",await v(`${j}/${u}/build/${t}/${u}${c}.js`),await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`),await v(`${j}/${u}/development/froalaeditor.pkgd.js`),await l(`${j}/${u}/development/froalaeditor.pkgd.css`)),x.pivotlocale}async function X(N){var K=N.location;if(K==="local"){var f=N.overrides;if(f===void 0&&(f=!1),f!==!0&&(f=!1),f===!0){var m=`${N.urlbase}ext-${N.sdkversion}/${t}overrides.js`;console.log("overridefile",m);async function o(p){try{const d=await fetch(p,{method:"HEAD"});return d.status===404?(console.error("ReExtData.overrides is true but no overrides file exists"),!1):d.status===200}catch{return!1}}var w=await o(m);w&&await v(m)}}}await X(r),await a(i,R,C)}function $n(){if(!(typeof window===void 0||typeof window>"u"))return g.jsx("div",{className:"splash",style:{fontSize:"36px",border:"10px solid #0960a5",width:"100%",height:"100%",margin:0,padding:0,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center"},children:g.jsx("img",{style:{height:500,width:1e3},src:"../ReExt/ReExt.png"})})}function En(r){if(typeof window===void 0||typeof window>"u")return;const[a,v]=P.useState(null),[l,t]=P.useState(null),i=P.useRef(null);i.current=l;const x=()=>i.current,[c,R]=P.useState(null),T=P.useRef(null);T.current=c;const C=()=>T.current,E=P.useRef(null);async function D(){return await new Promise(w=>{function o(){window.Ext!==void 0&&window.Ext.onReady(function(){return clearInterval(p),w(1)})}var p=setInterval(o,5)})}const b=(f,m,w)=>{if(!(typeof window===void 0||typeof window>"u")){var o=d=>{const W=d.charAt(0).toUpperCase(),M=d.slice(1);var Q="set"+(W+M);return Q},p;window.Ext.isClassic===!0?m==="items"?(f.removeAll(!0),f.add(w)):m!=="layout"&&(p=o(m),f[p]!==void 0?f[p](w):f[m]=w):(p=o(m),f[p]!==void 0&&f[p](w))}},J=(f,m,w)=>{if(!(typeof window===void 0||typeof window>"u")){var o={};if(o.xtype=f,m!==void 0)for(const[d,S]of Object.entries(m))o[d]=S;if(w.references===!0&&(o.controller=window.Ext.create("Ext.app.ViewController")),o.store!==void 0&&(o.store.listeners!==void 0?o.store.listeners.load===void 0&&(o.store.listeners.load=d=>{w.storeloaded!==void 0&&w.storeloaded(d,x())}):o.store.listeners={load:d=>{w.storeloaded!==void 0&&w.storeloaded(d,x())}}),o.listeners===void 0){o.listeners={};for(const[d,S]of Object.entries(w)){var p=ee(d);p!==null&&(o.listeners[p]=function(){S(...arguments)})}Object.keys(o.listeners).length===0&&delete o.listeners}return o}},j=(f,m)=>{if(!(typeof window===void 0||typeof window>"u")){var w=[],o=[];if(f!==void 0){r.children.length===void 0?o.push(f):o=f;try{o.map(p=>{var d,S;if(m.xtype==="tabpanel"){var W;window.Ext.ReExtTheme==="classic"?W="Ext.panel.Panel":W="Ext.Panel",d=window.Ext.create(W,{layout:"fit",title:p.props.title,cls:"ReExtTabChildRoot",items:[{xtype:"component",listeners:{boxready:Q=>{S=createPortal(p,Q.el.dom),w.push(S);var G=Q.el.dom.parentNode;B.observe(G)}},style:{backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}]}),m.add(d),window.Ext.isClassic===!0?M="Ext.container.Container":M="Ext.Container",window.Ext.isClassic!==!0&&(S=createPortal(p,d.items.items[0].el.dom),w.push(S))}else{var M;window.Ext.isClassic===!0?M="Ext.container.Container":M="Ext.Container",d=window.Ext.create(M,{cls:"ReExtWidgetRoot"}),m.add(d);var Z=P.cloneElement(p,{ReExtParent:m});window.Ext.isClassic===!0?S=createPortal(Z,d.el.dom):S=createPortal(Z,d.innerElement.dom),w.push(S)}}),v(w)}catch(p){console.error("iterateOverChildren:",p.toString())}}}};var ee=f=>{var m=null,w=f.slice(0,2);if(w==="on"){var o=f.charAt(2),p=f.charAt(2).toUpperCase();o===p&&(m=f.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&m==="tap"&&(m="click"),m},B;typeof ResizeObserver<"u"&&(B=new ResizeObserver(f=>{if(!(typeof window===void 0||typeof window>"u"))for(const S of f){var m=0,w=S.target.children.item(m);if(w!==null&&S.contentBoxSize){const W=S.contentBoxSize[0];var o=W.inlineSize,p=window.Ext.getCmp(w.id);if(p!==void 0)window.Ext.getCmp(w.id).setWidth(o),window.Ext.getCmp(w.id).setHeight(W.blockSize);else{console.log("child not found",w.id);var d=w.getAttribute("w");d!=="w"&&console.warn("child not resized",w)}}}})),P.useEffect(()=>{var f,m="false";if(!(typeof window===void 0||typeof window>"u"))return(async()=>{if(await D(),r.children!==void 0&&r.config.items===void 0&&(r.config.items=[]),m==="false"&&r.xtype!=="logosmall"){var w;C()==null?w=r.config:w=C();try{var o=J(r.xtype,w,r),p=Ext.ClassManager.getByAlias("widget."+o.xtype);if(p===void 0){var d="ReExt "+o.xtype+" could not be created";o={xtype:"label",text:d,style:{color:"red",background:"lightgray"}}}if(o.height===void 0&&o.xtype!=="window"&&(window.Ext.isClassic===!0&&o.xtype==="grid"?o.height=0:o.height="100%"),o.width===void 0&&o.xtype!=="window"&&(window.Ext.isClassic===!0&&o.xtype==="grid"?o.width=0:o.width="100%"),window.Ext.isClassic===!0){const S=W=>{var M=W.el.dom.parentNode;B.observe(M)};o.listeners===void 0?o.listeners={boxready:S}:o.listeners.boxready=S}o.xtype!=="window"&&(o.renderTo=E.current),f=window.Ext.create(o),t(f),i.current=f,r.config!==void 0&&r.config.reference!==void 0&&r.ReExtParent!==void 0&&(r.ReExtParent.ReExtChildren===void 0&&(r.ReExtParent.ReExtChildren=[]),r.ReExtParent.ReExtChildren.push(f)),E.current===null?console.warn("ReExtRootRef.current,props",E.current,r):(E.current.style.background="transparent",E.current.firstChild.remove()),j(r.children,f),which!=="p"&&doItW(f,"ReExt "+o.xtype,E.current),r.ready!==void 0&&r.ready(f)}catch(S){console.error(S)}}})(),()=>{m="true",!(typeof window===void 0||typeof window>"u")&&window.Ext!==void 0&&window.Ext.destroy!==void 0&&f!=null&&(t(null),window.Ext.destroy(f))}},[]),P.useEffect(()=>{if(!(typeof window===void 0||typeof window>"u")&&r.config!==void 0){if(i.current!==null){r.children!==void 0&&r.config.items===void 0&&(r.config.items=[]);for(const[d]of Object.entries(T.current)){if(ee(d)!=null||d==="xtype")return;var f=cloneDeep(T.current[d]),m=cloneDeep(r.config[d]);f!=null&&delete f.listeners,m!==void 0&&f!==null&&delete m.listeners;const S=W=>{let M=[],Z=JSON.stringify(W,function(Q,G){if(typeof G=="object"&&G!==null){if(M.indexOf(G)!==-1)return;M.push(G)}return G});return M=null,Z};var w=S(f),o=S(m),p=isEqual(w,o);p||(b(i.current,d,m),d==="items"&&j(r.children,i.current))}}R(r.config),T.current=r.config}},[r.config]);var k="",H="",F="",re="";if(!(typeof window===void 0||typeof window>"u")){if(window.Ext!==void 0&&window.Ext.versions!==null&&window.Ext.versions!==void 0){H=window.Ext.versions.core.version,re=window.Ext.ReExtTheme,k=window.Ext.ReExtLocation;var u=window.Ext.isClassic;u===!0?F="classic":F="modern"}if(!(typeof window===void 0||typeof window>"u")){if(r.xtype==="logosmall")return g.jsxs("div",{name:"ReExtRootLogo","data-rid":r.rid,style:{display:"flex",alignItems:"center",borderBottom:"0px solid gray",color:"black",padding:5,...r.style},children:[g.jsx("img",{style:{height:40,width:80},src:"../ReExt/ReExt.png"}),g.jsxs("div",{style:{margin:"0 0 0 3px"},children:[g.jsx("div",{style:{margin:"0 0 0 1px",fontSize:12,color:"black"},children:g.jsx("a",{style:r.style,target:"_blank",rel:"noreferrer",href:"https://www.npmjs.com/package/@sencha/reext",children:g.jsxs("i",{children:["React ReExt ",packageJson.version,which]})})}),g.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:g.jsxs("span",{style:{margin:"0 0 0 0"},children:["React: ",g.jsx("b",{children:P.version})]})}),g.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:g.jsxs("span",{style:{margin:"0 0 0 0"},children:["ExtJS: ",g.jsxs("b",{children:[H," (",k,")"]})]})}),g.jsxs("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:[g.jsxs("span",{style:{margin:"0 0 0 0"},children:["toolkit: ",g.jsx("b",{children:F})]}),g.jsxs("span",{style:{margin:"0 0 0 5px"},children:["theme: ",g.jsx("b",{children:re})]})]})]})]});var X;r.style===void 0||r.style.height===void 0?X=1:X="none";var N="";r.className!==void 0&&(N=r.className);var K="relative";return r.xtype==="window"?null:g.jsxs("div",{name:"ReExtRoot-"+r.xtype,"data-rid":r.rid,className:N+" fill",style:{...r.style,flex:X,position:K,xbackground:"white",display:"flex",overflow:"hidden",xborder:"0px solid red"},ref:E,children:[g.jsx("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center",xbackground:"#F8F8F8"}}),a!==null&&a.map(f=>f)]})}}}var Rn="t";function jn({children:r,ReExtData:a,reextkey:v,splash:l}){if(typeof window===void 0||typeof window>"u")return;const[t,i]=P.useState(!1),[x,c]=P.useState(!1);try{if(P.useEffect(()=>{(async()=>{if(Rn!=="p")if(v===void 0)i(!1);else{var T=mn(v);T.t==="trial"?i(!1):i(!0)}var C={sdkversion:"7.8.0",toolkit:"classic",theme:"classic",packages:{charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1},rtl:!1,locale:"en",debug:!1,urlbase:"./",location:"remote",overrides:!1};a===void 0&&(a=C);try{await bn(a),c(!0)}catch(E){console.error("fail",E)}})()},[]),!x)return l===!0||l==="true"?g.jsx($n,{}):null;if(t===!0)return g.jsxs("div",{className:"trialdialogroot",style:{boxSizing:"border-box",display:"flex",justifyContent:"center",alignItems:"center",border:"0px solid blue",position:"relative",height:"100vh",width:"100vw"},children:[g.jsx(hn,{setTrial:i,packageJson:wn}),r]});if(x)return g.jsx(g.Fragment,{children:r})}catch{return g.jsx("div",{children:"error"})}}const Sn=r=>{if(typeof window===void 0||typeof window>"u")return;const[a,v]=P.useState(r);var l=P.useRef();return l.current=a,[()=>l.current,v]};function _n(r){if(!(typeof window===void 0||typeof window>"u")){for(var a,v=r.getController(),l=r;v===void 0;)v=r.parent.getController(),l=r.parent;if(a=v.getReferences(),a===null&&(a={}),l.ReExtChildren!==void 0)for(var t=0;t<l.ReExtChildren.length;t++)l.ReExtChildren[t].reference!==null&&(a[l.ReExtChildren[t].reference]=l.ReExtChildren[t]);return a}}L.Fill=xn,L.ReExtProvider=jn,L.ReExtReferences=_n,L.default=En,L.useReExtState=Sn,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
<%s key={someKey} {...props} />`,Me,te,qn,te),Sr[te+Me]=!0}}return e===l?Kn(I):Jn(I),I}}function Hn(e,n,s){return _r(e,n,s,!0)}function Xn(e,n,s){return _r(e,n,s,!1)}var Zn=Xn,Qn=Hn;le.Fragment=l,le.jsx=Zn,le.jsxs=Qn}()),le}process.env.NODE_ENV==="production"?be.exports=Tr():be.exports=Cr();var g=be.exports,Or=typeof de=="object"&&de&&de.Object===Object&&de,Ue=Or,Pr=Ue,kr=typeof self=="object"&&self&&self.Object===Object&&self,Ar=Pr||kr||Function("return this")(),Y=Ar,Fr=Y,Ir=Fr.Symbol,ve=Ir,Be=ve,Ve=Object.prototype,Dr=Ve.hasOwnProperty,Nr=Ve.toString,ce=Be?Be.toStringTag:void 0;function Mr(r){var a=Dr.call(r,ce),v=r[ce];try{r[ce]=void 0;var l=!0}catch{}var t=Nr.call(r);return l&&(a?r[ce]=v:delete r[ce]),t}var Wr=Mr,zr=Object.prototype,Ur=zr.toString;function Br(r){return Ur.call(r)}var Vr=Br,Le=ve,Lr=Wr,Yr=Vr,Gr="[object Null]",Jr="[object Undefined]",Ye=Le?Le.toStringTag:void 0;function Kr(r){return r==null?r===void 0?Jr:Gr:Ye&&Ye in Object(r)?Lr(r):Yr(r)}var $e=Kr;function Hr(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}var Ge=Hr,Xr=$e,Zr=Ge,Qr="[object AsyncFunction]",qr="[object Function]",et="[object GeneratorFunction]",rt="[object Proxy]";function tt(r){if(!Zr(r))return!1;var a=Xr(r);return a==qr||a==et||a==Qr||a==rt}var nt=tt,it=Y,at=it["__core-js_shared__"],ot=at,Ee=ot,Je=function(){var r=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function st(r){return!!Je&&Je in r}var lt=st,ct=Function.prototype,ut=ct.toString;function ft(r){if(r!=null){try{return ut.call(r)}catch{}try{return r+""}catch{}}return""}var Ke=ft,dt=nt,vt=lt,pt=Ge,yt=Ke,wt=/[\\^$.*+?()[\]{}|]/g,xt=/^\[object .+?Constructor\]$/,gt=Function.prototype,mt=Object.prototype,ht=gt.toString,bt=mt.hasOwnProperty,$t=RegExp("^"+ht.call(bt).replace(wt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Et(r){if(!pt(r)||vt(r))return!1;var a=dt(r)?$t:xt;return a.test(yt(r))}var Rt=Et;function jt(r,a){return r==null?void 0:r[a]}var St=jt,_t=Rt,Tt=St;function Ct(r,a){var v=Tt(r,a);return _t(v)?v:void 0}var q=Ct,Ot=q,Pt=Y,kt=Ot(Pt,"Map"),At=kt,Ft=q;Ft(Object,"create");var It=q;(function(){try{var r=It(Object,"defineProperty");return r({},"",{}),r}catch{}})();function Dt(r){return r!=null&&typeof r=="object"}var He=Dt,Nt=$e,Mt=He,Wt="[object Arguments]";function zt(r){return Mt(r)&&Nt(r)==Wt}var Ut=zt,Xe=Ut,Bt=He,Ze=Object.prototype,Vt=Ze.hasOwnProperty,Lt=Ze.propertyIsEnumerable;Xe(function(){return arguments}());var pe={exports:{}};function Yt(){return!1}var Gt=Yt;pe.exports,function(r,a){var v=Y,l=Gt,t=a&&!a.nodeType&&a,i=t&&!0&&r&&!r.nodeType&&r,x=i&&i.exports===t,c=x?v.Buffer:void 0,R=c?c.isBuffer:void 0,T=R||l;r.exports=T}(pe,pe.exports),pe.exports;var ye={exports:{}};ye.exports,function(r,a){var v=Ue,l=a&&!a.nodeType&&a,t=l&&!0&&r&&!r.nodeType&&r,i=t&&t.exports===l,x=i&&v.process,c=function(){try{var R=t&&t.require&&t.require("util").types;return R||x&&x.binding&&x.binding("util")}catch{}}();r.exports=c}(ye,ye.exports);var Re=ye.exports,Qe=Re;Qe&&Qe.isTypedArray;var we={exports:{}};we.exports,function(r,a){var v=Y,l=a&&!a.nodeType&&a,t=l&&!0&&r&&!r.nodeType&&r,i=t&&t.exports===l,x=i?v.Buffer:void 0,c=x?x.allocUnsafe:void 0;function R(T,C){if(C)return T.slice();var E=T.length,D=c?c(E):new T.constructor(E);return T.copy(D),D}r.exports=R}(we,we.exports),we.exports;var Jt=q,Kt=Y,Ht=Jt(Kt,"DataView"),Xt=Ht,Zt=q,Qt=Y,qt=Zt(Qt,"Promise"),en=qt,rn=q,tn=Y,nn=rn(tn,"Set"),an=nn,on=q,sn=Y,ln=on(sn,"WeakMap"),cn=ln,je=Xt,Se=At,_e=en,Te=an,Ce=cn,qe=$e,ne=Ke,er="[object Map]",un="[object Object]",rr="[object Promise]",tr="[object Set]",nr="[object WeakMap]",ir="[object DataView]",fn=ne(je),dn=ne(Se),vn=ne(_e),pn=ne(Te),yn=ne(Ce),ie=qe;(je&&ie(new je(new ArrayBuffer(1)))!=ir||Se&&ie(new Se)!=er||_e&&ie(_e.resolve())!=rr||Te&&ie(new Te)!=tr||Ce&&ie(new Ce)!=nr)&&(ie=function(r){var a=qe(r),v=a==un?r.constructor:void 0,l=v?ne(v):"";if(l)switch(l){case fn:return ir;case dn:return er;case vn:return rr;case pn:return tr;case yn:return nr}return a});var wn=Y;wn.Uint8Array;var ar=ve,or=ar?ar.prototype:void 0;or&&or.valueOf;var sr=Re;sr&&sr.isMap;var lr=Re;lr&&lr.isSet;var cr=ve,ur=cr?cr.prototype:void 0;ur&&ur.valueOf;const fr={name:"@sencha/reext",version:"0.0.37",description:"React ReExt",types:"./dist/ReExt/types.d.ts",module:"./dist/reext.es.js",scripts:{zip:"npm-build-zip --source=dist --destination=zip",pack:"npm pack --pack-destination zip",prepublishOnly:"node ./public/scripts/prepublish.js",postpublish:"node ./public/scripts/postpublish.js",dev:"vite",build2:"vite build -m development",build:"vite build",test:"vitest run",watch:"vitest",coverage:"vitest run --coverage"},author:{name:"Sencha, Inc.",email:"marcgusmano@gmail.com",url:"http://marcgusmano.com"},homepage:"https://www.sencha.com/products/reext/",keywords:["React","Sencha","ExtJS","Components","ReExt"],license:"MIT",files:["dist","README.md"],exports:{".":{import:"./dist/reext.es.js"}},browserslist:{production:[">0.2%","not dead","not op_mini all"],development:["last 1 chrome version","last 1 firefox version","last 1 safari version"]},eslintConfig:{env:{browser:!0,node:!0,es2020:!0},extends:["eslint:recommended","plugin:react/recommended"],parserOptions:{sourceType:"module"}},devDependencies:{"@babel/generator":"^7.25.0","@babel/parser":"^7.25.0","@vitejs/plugin-react-swc":"^3.7.0",eslint:"8.57.0","eslint-plugin-react":"^7.35.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"^0.4.9"}};async function xn(){if(typeof window===void 0||typeof window>"u")return;function r(a){a.style.width="100%",a.style.height="100%",a.style.margin="0",a.style.padding="0",a.style.padding="0",a.style.boxSizing="border-box",a.style.overflow="hidden"}document.documentElement&&r(document.documentElement),document.body&&r(document.body),document.getElementById("root")&&r(document.getElementById("root"))}function gn(r,a=3){return r.split("").map(v=>{const l=v.charCodeAt(0);if(l>=65&&l<=90||l>=97&&l<=122){const t=l>=97?97:65;return String.fromCharCode((l-t+a)%26+t)}return v}).join("")}const mn=r=>{try{let D=function(b,G=3){var j=gn(b,26-G);return j};var a=atob(r),v=new Uint8Array(a.length);for(let b=0;b<a.length;b++)v[b]=a.charCodeAt(b);var l=new TextDecoder("ascii").decode(v),t=D(l),i=t.split("|"),x=i[0],c=i[1],R=i[2],T=new Date(parseInt(R)),C=T.toISOString().split("T")[0],E={e:x,t:c,d:C};return E}catch{return E={e:"",t:"bad",d:""}}};function hn({setTrial:r,packageJson:a}){return g.jsx("div",{className:"trialdialog",style:{zIndex:2e5,fontSize:"28px",background:"rgb(211,211,211,.4)",color:"black",display:"flex",flexDirection:"column",position:"absolute",left:"50%",width:"100%",height:"100%",transform:"translateX(-50%)",padding:"10px 10px 10px 10px",border:"1px solid black"},children:g.jsxs("div",{style:{height:"100%",display:"flex",padding:"10px 10px 10px 10px",flexDirection:"column",margin:"40px",borderRadius:"5px",border:"1px solid gray",background:"white"},children:[g.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[g.jsx("img",{style:{width:160},src:"../ReExt/ReExt.png"}),g.jsxs("div",{style:{margin:"0 0 0 20px"},children:["Welcome to the React ReExt v",a.version," Trial"]})]}),g.jsxs("div",{style:{margin:"10px 0 10px 0",fontSize:"18px"},children:["This is a 30 day trial version of React ReExt.",g.jsx("br",{}),"Without a trial key, this dialog will appear.",g.jsx("br",{}),g.jsx("br",{}),"To have a trial key emailed to you, fill in this form and click 'Get Trial Key'."]}),g.jsx("div",{style:{xwidth:"100%",flex:1,display:"flex",border:"0px solid red"},children:g.jsx("iframe",{style:{width:"100%",margin:"0 0 10px 0",flex:1,border:"0px solid lightgray"},src:"http://marcgusmano.com/eloqua/index.html"})}),g.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end"},children:g.jsx("button",{style:{fontSize:"18px",padding:"5px 5px 5px 5px"},onClick:()=>{r(!1)},children:"Close"})})]})})}async function bn(r){const a=async(N,K,f)=>await new Promise(o=>{window.Ext.onReady(function(){return window.Ext.ReExtLocation=f,window.Ext.ReExtTheme=N,window.Ext.ReExtLi=!0,o(1)})}),v=async N=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((m,w)=>{let o=document.getElementsByTagName("HEAD")[0];var p=!1;for(let d=0;d<o.childNodes.length;d++)o.childNodes[d].src===N&&(p=!0);if(p===!1){const d=document.createElement("script");d.addEventListener("load",()=>m(1)),d.addEventListener("error",()=>{var S=`${N} (js) could not be loaded - copy the node_modules/@sencha/reext/ext folder to the project's public folder`;console.error(S),w(S)}),d.src=N,o.appendChild(d)}}),l=async N=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((m,w)=>{let o=document.getElementsByTagName("HEAD")[0],p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.href=N,p.addEventListener("error",()=>{var d=`${N} (css) could not be loaded - copy the node_modules/@sencha/reext/ext folder to the project's public folder`;return console.error(d),w(d)}),p.addEventListener("load",()=>m(1)),o.appendChild(p)});var t=r.toolkit;(t==null||t==="")&&(t="modern");var i=r.theme;(i==null||i==="")&&(i="material");var x=r.packages;x===void 0&&(x={charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1});var c=r.debug,R=r.license,T=r.urlbase,C=r.location;(C==="remote"||C===null)&&(T="https://reextdemo.vercel.app/");var E=r.rtl;E===!1||E===void 0?E="":E="-rtl";var D=r.locale;D===void 0&&(D="en");var b=r.sdkversion;switch(b){case"7.0.0":b=b+".156";break;case"7.1.0":b=b+".46";break;case"7.2.0":case"7.3.0":case"7.3.1":case"7.4.0":case"7.5.0":case"7.5.1":case"7.6.0":case"7.7.0":case"7.8.0":break;default:throw`SDK version ${b} is not valid`}var G=T+"ext-"+b,j=T+"ext-addons-"+b;c===!0?c="-debug":c="";var ee="";t==="modern"&&(ee="-modern");var B=["ios","material","neptune","triton"];if(t==="modern"&&!B.includes(i))throw`${i} theme is not in ${t} toolkit for SDK version ${b}`;var k=["classic","crisp","graphite","gray","material","neptune","triton"];t==="classic"&&!k.includes(i)&&console.warn(`${i} is a custom theme in ${t} toolkit for SDK version ${b}`);var H=!1;(x.calendar===!0||x.d3===!0||x.exporter===!0||x.pivot===!0||x.pivotd3===!0||x.pivotlocale===!0||x.froalaeditor===!0)&&(H=!0);var F=G+"/build";if(b.slice(-1)==="c"){await v(`${F}/ext-${b}-toolkit-${t}-sdk.js`),await l(`${F}/ext-${b}-theme-${i}-sdk.css`),H===!0&&(await v(`${G}/ext-${b}-toolkit-${t}-addons.js`),await l(`${G}/ext-${b}-theme-${i}-addons.css`)),await a(i,R,C);return}if(await v(`${F}/ext${ee}-all${E}${c}.js`),await l(`${F}/${t}/theme-${i}/resources/theme-${i}-all${E}.css`),x.fontawesome===!0&&await l(`${F}/packages/font-awesome/resources/font-awesome-all${c}.css`),v(`${F}/${t}/locale/locale-${D}${c}.js`),x.ux===!0&&(await v(`${F}/packages/ux/${t}/ux${c}.js`),b==="7.0.0"&&t==="modern"&&i==="neptune"&&await l(`${F}/packages/ux/${t}/${t}-${i}/resources/ux-all${c}.css`),b==="7.0.0"&&t==="classic"&&await l(`${F}/packages/ux/${t}/${i}/resources/ux-all${c}.css`),b!=="7.0.0"&&t==="classic"&&i==="material"&&await l(`${F}/packages/ux/${t}/${t}-${i}/resources/ux-all${c}.css`),b!=="7.0.0"&&t==="classic"&&i!=="material"&&i!=="gray"&&await l(`${F}/packages/ux/${t}/${i}/resources/ux-all${c}.css`)),x.charts===!0){await v(`${F}/packages/charts/${t}/charts${c}.js`);var re=!0;(t==="modern"&&i==="ios"&&b==="7.0.0"||i==="gray")&&(re=!1),re===!0&&(t==="classic"&&i!=="material"?await l(`${F}/packages/charts/${t}/${i}/resources/charts-all${c}.css`):await l(`${F}/packages/charts/${t}/${t}-${i}/resources/charts-all${c}.css`))}if(H===!0){var u;j=j+"/packages",x.calendar===!0&&(u="calendar",await v(`${j}/${u}/build/${t}/${u}${c}.js`),t==="modern"&&i==="ios"||b==="7.0.0.156"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):i!=="gray"&&i!=="graphite"&&(t==="classic"&&i!=="material"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):await l(`${j}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))),x.d3===!0&&(u="d3",await v(`${j}/${u}/build/${t}/${u}${c}.js`),t==="modern"&&(i==="ios"||i==="material")?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):i!=="gray"&&i!=="graphite"&&(t==="classic"&&i!=="material"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):await l(`${j}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))),x.exporter===!0&&(u="exporter",await v(`${j}/${u}/build/${t}/${u}${c}.js`),await l(`${j}/${u}/build/${t}/resources/${u}-all${c}.css`)),x.pivot===!0&&(u="pivot",await v(`${j}/${u}/build/${t}/${u}${c}.js`),t==="modern"&&(i==="ios"||i==="material")?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):i!=="gray"&&i!=="graphite"&&(t==="classic"&&i!=="material"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):await l(`${j}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))),x.pivotd3===!0&&(u="pivot-d3",await v(`${j}/${u}/build/${t}/${u}${c}.js`),t==="modern"&&(i==="ios"||i==="material")?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):i!=="gray"&&i!=="graphite"&&(t==="classic"&&i!=="material"?await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`):await l(`${j}/${u}/build/${t}/${t}-${i}/resources/${u}-all${c}.css`))),x.froalaeditor===!0&&(u="froala-editor",await v(`${j}/${u}/build/${t}/${u}${c}.js`),await l(`${j}/${u}/build/${t}/${i}/resources/${u}-all${c}.css`),await v(`${j}/${u}/development/froalaeditor.pkgd.js`),await l(`${j}/${u}/development/froalaeditor.pkgd.css`)),x.pivotlocale}async function X(N){var K=N.location;if(K==="local"){var f=N.overrides;if(f===void 0&&(f=!1),f!==!0&&(f=!1),f===!0){var m=`${N.urlbase}ext-${N.sdkversion}/${t}overrides.js`;console.log("overridefile",m);async function o(p){try{const d=await fetch(p,{method:"HEAD"});return d.status===404?(console.error("ReExtData.overrides is true but no overrides file exists"),!1):d.status===200}catch{return!1}}var w=await o(m);w&&await v(m)}}}await X(r),await a(i,R,C)}function $n(){if(!(typeof window===void 0||typeof window>"u"))return g.jsx("div",{className:"splash",style:{fontSize:"36px",border:"10px solid #0960a5",width:"100%",height:"100%",margin:0,padding:0,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center"},children:g.jsx("img",{style:{height:500,width:1e3},src:"../ReExt/ReExt.png"})})}function En(r){if(typeof window===void 0||typeof window>"u")return;const[a,v]=P.useState(null),[l,t]=P.useState(null),i=P.useRef(null);i.current=l;const x=()=>i.current,[c,R]=P.useState(null),T=P.useRef(null);T.current=c;const C=()=>T.current,E=P.useRef(null);async function D(){return await new Promise(w=>{function o(){window.Ext!==void 0&&window.Ext.onReady(function(){return clearInterval(p),w(1)})}var p=setInterval(o,5)})}const b=(f,m,w)=>{if(!(typeof window===void 0||typeof window>"u")){var o=d=>{const W=d.charAt(0).toUpperCase(),M=d.slice(1);var Q="set"+(W+M);return Q},p;window.Ext.isClassic===!0?m==="items"?(f.removeAll(!0),f.add(w)):m!=="layout"&&(p=o(m),f[p]!==void 0?f[p](w):f[m]=w):(p=o(m),f[p]!==void 0&&f[p](w))}},G=(f,m,w)=>{if(!(typeof window===void 0||typeof window>"u")){var o={};if(o.xtype=f,m!==void 0)for(const[d,S]of Object.entries(m))o[d]=S;if(w.references===!0&&(o.controller=window.Ext.create("Ext.app.ViewController")),o.store!==void 0&&(o.store.listeners!==void 0?o.store.listeners.load===void 0&&(o.store.listeners.load=d=>{w.storeloaded!==void 0&&w.storeloaded(d,x())}):o.store.listeners={load:d=>{w.storeloaded!==void 0&&w.storeloaded(d,x())}}),o.listeners===void 0){o.listeners={};for(const[d,S]of Object.entries(w)){var p=ee(d);p!==null&&(o.listeners[p]=function(){S(...arguments)})}Object.keys(o.listeners).length===0&&delete o.listeners}return o}},j=(f,m)=>{if(!(typeof window===void 0||typeof window>"u")){var w=[],o=[];if(f!==void 0){r.children.length===void 0?o.push(f):o=f;try{o.map(p=>{var d,S;if(m.xtype==="tabpanel"){var W;window.Ext.ReExtTheme==="classic"?W="Ext.panel.Panel":W="Ext.Panel",d=window.Ext.create(W,{layout:"fit",title:p.props.title,cls:"ReExtTabChildRoot",items:[{xtype:"component",listeners:{boxready:Q=>{S=createPortal(p,Q.el.dom),w.push(S);var J=Q.el.dom.parentNode;B.observe(J)}},style:{backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}]}),m.add(d),window.Ext.isClassic===!0?M="Ext.container.Container":M="Ext.Container",window.Ext.isClassic!==!0&&(S=createPortal(p,d.items.items[0].el.dom),w.push(S))}else{var M;window.Ext.isClassic===!0?M="Ext.container.Container":M="Ext.Container",d=window.Ext.create(M,{cls:"ReExtWidgetRoot"}),m.add(d);var Z=P.cloneElement(p,{ReExtParent:m});window.Ext.isClassic===!0?S=createPortal(Z,d.el.dom):S=createPortal(Z,d.innerElement.dom),w.push(S)}}),v(w)}catch(p){console.error("iterateOverChildren:",p.toString())}}}};var ee=f=>{var m=null,w=f.slice(0,2);if(w==="on"){var o=f.charAt(2),p=f.charAt(2).toUpperCase();o===p&&(m=f.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&m==="tap"&&(m="click"),m},B;typeof ResizeObserver<"u"&&(B=new ResizeObserver(f=>{if(!(typeof window===void 0||typeof window>"u"))for(const S of f){var m=0,w=S.target.children.item(m);if(w!==null&&S.contentBoxSize){const W=S.contentBoxSize[0];var o=W.inlineSize,p=window.Ext.getCmp(w.id);if(p!==void 0)window.Ext.getCmp(w.id).setWidth(o),window.Ext.getCmp(w.id).setHeight(W.blockSize);else{console.log("child not found",w.id);var d=w.getAttribute("w");d!=="w"&&console.warn("child not resized",w)}}}})),P.useEffect(()=>{var f,m="false";if(!(typeof window===void 0||typeof window>"u"))return(async()=>{if(await D(),r.children!==void 0&&r.config.items===void 0&&(r.config.items=[]),m==="false"&&r.xtype!=="logosmall"){var w;C()==null?w=r.config:w=C();try{var o=G(r.xtype,w,r),p=Ext.ClassManager.getByAlias("widget."+o.xtype);if(p===void 0){var d="ReExt "+o.xtype+" could not be created";o={xtype:"label",text:d,style:{color:"red",background:"lightgray"}}}if(o.height===void 0&&o.xtype!=="window"&&(window.Ext.isClassic===!0&&o.xtype==="grid"?o.height=0:o.height="100%"),o.width===void 0&&o.xtype!=="window"&&(window.Ext.isClassic===!0&&o.xtype==="grid"?o.width=0:o.width="100%"),window.Ext.isClassic===!0){const S=W=>{var M=W.el.dom.parentNode;B.observe(M)};o.listeners===void 0?o.listeners={boxready:S}:o.listeners.boxready=S}o.xtype!=="window"&&(o.renderTo=E.current),f=window.Ext.create(o),t(f),i.current=f,r.config!==void 0&&r.config.reference!==void 0&&r.ReExtParent!==void 0&&(r.ReExtParent.ReExtChildren===void 0&&(r.ReExtParent.ReExtChildren=[]),r.ReExtParent.ReExtChildren.push(f)),E.current===null?console.warn("ReExtRootRef.current,props",E.current,r):(E.current.style.background="transparent",E.current.firstChild.remove()),j(r.children,f),which!=="p"&&doItW(f,"ReExt "+o.xtype,E.current),r.ready!==void 0&&r.ready(f)}catch(S){console.error(S)}}})(),()=>{m="true",!(typeof window===void 0||typeof window>"u")&&window.Ext!==void 0&&window.Ext.destroy!==void 0&&f!=null&&(t(null),window.Ext.destroy(f))}},[]),P.useEffect(()=>{if(!(typeof window===void 0||typeof window>"u")&&r.config!==void 0){if(i.current!==null){r.children!==void 0&&r.config.items===void 0&&(r.config.items=[]);for(const[d]of Object.entries(T.current)){if(ee(d)!=null||d==="xtype")return;var f=cloneDeep(T.current[d]),m=cloneDeep(r.config[d]);f!=null&&delete f.listeners,m!==void 0&&f!==null&&delete m.listeners;const S=W=>{let M=[],Z=JSON.stringify(W,function(Q,J){if(typeof J=="object"&&J!==null){if(M.indexOf(J)!==-1)return;M.push(J)}return J});return M=null,Z};var w=S(f),o=S(m),p=isEqual(w,o);p||(b(i.current,d,m),d==="items"&&j(r.children,i.current))}}R(r.config),T.current=r.config}},[r.config]);var k="",H="",F="",re="";if(!(typeof window===void 0||typeof window>"u")){if(window.Ext!==void 0&&window.Ext.versions!==null&&window.Ext.versions!==void 0){H=window.Ext.versions.core.version,re=window.Ext.ReExtTheme,k=window.Ext.ReExtLocation;var u=window.Ext.isClassic;u===!0?F="classic":F="modern"}if(!(typeof window===void 0||typeof window>"u")){if(r.xtype==="logosmall")return g.jsxs("div",{name:"ReExtRootLogo","data-rid":r.rid,style:{display:"flex",alignItems:"center",borderBottom:"0px solid gray",color:"black",padding:5,...r.style},children:[g.jsx("img",{style:{height:40,width:80},src:"../ReExt/ReExt.png"}),g.jsxs("div",{style:{margin:"0 0 0 3px"},children:[g.jsx("div",{style:{margin:"0 0 0 1px",fontSize:12,color:"black"},children:g.jsx("a",{style:r.style,target:"_blank",rel:"noreferrer",href:"https://www.npmjs.com/package/@sencha/reext",children:g.jsxs("i",{children:["React ReExt ",fr.version,which]})})}),g.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:g.jsxs("span",{style:{margin:"0 0 0 0"},children:["React: ",g.jsx("b",{children:P.version})]})}),g.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:g.jsxs("span",{style:{margin:"0 0 0 0"},children:["ExtJS: ",g.jsxs("b",{children:[H," (",k,")"]})]})}),g.jsxs("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:[g.jsxs("span",{style:{margin:"0 0 0 0"},children:["toolkit: ",g.jsx("b",{children:F})]}),g.jsxs("span",{style:{margin:"0 0 0 5px"},children:["theme: ",g.jsx("b",{children:re})]})]})]})]});var X;r.style===void 0||r.style.height===void 0?X=1:X="none";var N="";r.className!==void 0&&(N=r.className);var K="relative";return r.xtype==="window"?null:g.jsxs("div",{name:"ReExtRoot-"+r.xtype,"data-rid":r.rid,className:N+" fill",style:{...r.style,flex:X,position:K,xbackground:"white",display:"flex",overflow:"hidden",xborder:"0px solid red"},ref:E,children:[g.jsx("div",{style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center",xbackground:"#F8F8F8"}}),a!==null&&a.map(f=>f)]})}}}var Rn="t";function jn({children:r,ReExtData:a,reextkey:v,splash:l}){if(typeof window===void 0||typeof window>"u")return;const[t,i]=P.useState(!1),[x,c]=P.useState(!1);try{if(P.useEffect(()=>{(async()=>{if(Rn!=="p")if(v===void 0)i(!1);else{var T=mn(v);T.t==="trial"?i(!1):i(!0)}var C={sdkversion:"7.8.0",toolkit:"classic",theme:"classic",packages:{charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1},rtl:!1,locale:"en",debug:!1,urlbase:"./",location:"remote",overrides:!1};a===void 0&&(a=C);try{await bn(a),c(!0)}catch(E){console.error("fail",E)}})()},[]),!x)return l===!0||l==="true"?g.jsx($n,{}):null;if(t===!0)return g.jsxs("div",{className:"trialdialogroot",style:{boxSizing:"border-box",display:"flex",justifyContent:"center",alignItems:"center",border:"0px solid blue",position:"relative",height:"100vh",width:"100vw"},children:[g.jsx(hn,{setTrial:i,packageJson:fr}),r]});if(x)return g.jsx(g.Fragment,{children:r})}catch{return g.jsx("div",{children:"error"})}}const Sn=r=>{if(typeof window===void 0||typeof window>"u")return;const[a,v]=P.useState(r);var l=P.useRef();return l.current=a,[()=>l.current,v]};function _n(r){if(!(typeof window===void 0||typeof window>"u")){for(var a,v=r.getController(),l=r;v===void 0;)v=r.parent.getController(),l=r.parent;if(a=v.getReferences(),a===null&&(a={}),l.ReExtChildren!==void 0)for(var t=0;t<l.ReExtChildren.length;t++)l.ReExtChildren[t].reference!==null&&(a[l.ReExtChildren[t].reference]=l.ReExtChildren[t]);return a}}L.Fill=xn,L.ReExtProvider=jn,L.ReExtReferences=_n,L.default=En,L.useReExtState=Sn,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
{ | ||
"name": "@sencha/reext", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"description": "React ReExt", | ||
@@ -5,0 +5,0 @@ "types": "./dist/ReExt/types.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237229