@npm-questionpro/wick-ui-lib 1.35.3 → 1.35.5

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.
@@ -39,7 +39,7 @@ function m(...e) {
39
39
  return Bd(Sd(e));
40
40
  }
41
41
  const os = (e) => {
42
- window.open(
42
+ window == null || window.open(
43
43
  e,
44
44
  "_blank",
45
45
  "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600"
@@ -3023,7 +3023,7 @@ const su = /* @__PURE__ */ x.forwardRef(function(t, n) {
3023
3023
  });
3024
3024
  });
3025
3025
  process.env.NODE_ENV !== "production" && (su.displayName = "Input");
3026
- const Bf = "_wuInputGroup_dz2g7_1", Wf = "_wuInputIcon_dz2g7_20", $f = "_wuInput_dz2g7_1", qf = "_passwordToggle_dz2g7_89", Yn = {
3026
+ const Bf = "_wuInputGroup_1t4ep_1", Wf = "_wuInputIcon_1t4ep_20", $f = "_wuInput_1t4ep_1", qf = "_passwordToggle_1t4ep_89", Yn = {
3027
3027
  wuInputGroup: Bf,
3028
3028
  wuInputIcon: Wf,
3029
3029
  wuInput: $f,
@@ -15240,16 +15240,27 @@ const ov = Ke("wu-flex wu-items-center wu-gap-3 wu-w-fit", {
15240
15240
  });
15241
15241
  if (!f.ok)
15242
15242
  throw new Error("Failed to fetch translation keys");
15243
- const h = await f.json(), g = await fetch(`${n}`, {
15244
- method: "POST",
15245
- // eslint-disable-next-line @typescript-eslint/naming-convention
15246
- headers: { "Content-Type": "application/json" },
15247
- body: JSON.stringify({ keys: h, code: s }),
15248
- signal: w.signal
15249
- });
15250
- if (!g.ok) throw new Error("Failed to fetch dictionary");
15251
- const y = await g.json();
15252
- u(y);
15243
+ const h = await f.json();
15244
+ if (s !== "en")
15245
+ try {
15246
+ const g = await fetch(`${n}`, {
15247
+ method: "POST",
15248
+ // eslint-disable-next-line @typescript-eslint/naming-convention
15249
+ headers: { "Content-Type": "application/json" },
15250
+ body: JSON.stringify({ keys: h, code: s }),
15251
+ signal: w.signal
15252
+ });
15253
+ if (!g.ok) throw new Error("Failed to fetch dictionary");
15254
+ const y = await g.json();
15255
+ u(y.data);
15256
+ } catch (g) {
15257
+ g.name !== "AbortError" && (console.error(
15258
+ "[WuTranslateProvider] Error loading translations:",
15259
+ g
15260
+ ), u(h));
15261
+ }
15262
+ else
15263
+ u(h);
15253
15264
  } catch (f) {
15254
15265
  f.name !== "AbortError" && (console.error(
15255
15266
  "[WuTranslateProvider] Error loading translations:",
@@ -15274,7 +15285,7 @@ const ov = Ke("wu-flex wu-items-center wu-gap-3 wu-w-fit", {
15274
15285
  }
15275
15286
  );
15276
15287
  uv.displayName = "WuTranslate";
15277
- window && (window.wickUiVersion = "1.35.3", window.wickUiIcon = "9.0.0", window.wickUiEditor = "0.13.0");
15288
+ window && (window.wickUiVersion = "1.35.5", window.wickUiIcon = "9.0.0", window.wickUiEditor = "0.13.0");
15278
15289
  export {
15279
15290
  S0 as CHART_COLOR_SYSTEM,
15280
15291
  Sv as WuAccordion,