uikit/dist/chunks/resolve-query-param-provider-CtTON3yT.js
Mohamadzadeh dd5b513590
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 52s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
uikit-v1.2.6-query-param-provider-cjs-fixed
2026-10-26 15:03:44 +03:30

31 lines
919 B
JavaScript

function u(f, r) {
const o = /* @__PURE__ */ new Set();
let e = f;
for (let t = 0; t < 6 && e != null && !o.has(e); t += 1) {
if (typeof e == "function") return e;
if (typeof e != "object") break;
o.add(e);
const n = e[r];
if (typeof n == "function") return n;
if (n && typeof n.default == "function") return n.default;
e = e.default;
}
throw new Error(`uikit: Unable to resolve ${r} from next-query-params.`);
}
function a(f) {
let r = f;
const o = /* @__PURE__ */ new Set();
for (let e = 0; e < 6 && r != null && !o.has(r) && !(typeof r != "object" && typeof r != "function"); e += 1) {
o.add(r);
const t = r.QueryParamProvider;
if (typeof t == "function" || t && typeof t == "object" && t.$$typeof)
return t;
r = r.default;
}
throw new Error("uikit: Unable to resolve QueryParamProvider from use-query-params.");
}
export {
u as a,
a as r
};