@clickhouse/click-ui 0.0.234-sc-deprecation.3 → 0.0.234-sc-deprecation.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65944,28 +65944,43 @@ const a4 = (e, n) => {
65944
65944
  const n = Rz();
65945
65945
  return n[e] || n.light;
65946
65946
  }, Dz = async () => {
65947
+ try {
65948
+ const e = await import("click-ui-config");
65949
+ if (e != null && e.default || e)
65950
+ return e.default || e;
65951
+ } catch {
65952
+ }
65953
+ if (typeof window < "u")
65954
+ try {
65955
+ const e = window.clickUIConfig;
65956
+ if (e)
65957
+ return e;
65958
+ } catch {
65959
+ }
65947
65960
  if (typeof window > "u")
65948
65961
  try {
65949
- const e = `${process.cwd()}/click-ui.config`;
65950
- delete require.cache[require.resolve(e)];
65951
- const n = require(e);
65952
- return n.default || n;
65962
+ const e = [
65963
+ "./click-ui.config.ts",
65964
+ "./click-ui.config.js",
65965
+ "./click-ui.config.mjs",
65966
+ "../click-ui.config.ts",
65967
+ "../click-ui.config.js",
65968
+ "../click-ui.config.mjs"
65969
+ ];
65970
+ for (const n of e)
65971
+ try {
65972
+ const l = await import(
65973
+ /* @vite-ignore */
65974
+ n
65975
+ );
65976
+ if (l != null && l.default || l)
65977
+ return l.default || l;
65978
+ } catch {
65979
+ continue;
65980
+ }
65953
65981
  } catch {
65954
- try {
65955
- const e = await import(
65956
- /* @vite-ignore */
65957
- `${process.cwd()}/click-ui.config.js`
65958
- );
65959
- return e.default || e;
65960
- } catch {
65961
- return null;
65962
- }
65963
65982
  }
65964
- try {
65965
- return window.clickUIConfig || null;
65966
- } catch {
65967
- return null;
65968
- }
65983
+ return null;
65969
65984
  }, Jr = (e, n) => {
65970
65985
  if (!n) return e;
65971
65986
  const l = { ...e };