vim-web 0.3.44-dev.74 → 0.3.44-dev.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vim-web.js CHANGED
@@ -75669,7 +75669,8 @@ function InputNumber(props) {
75669
75669
  );
75670
75670
  }
75671
75671
  function GenericEntry(field) {
75672
- if (field.visible() === false) return null;
75672
+ var _a3;
75673
+ if (((_a3 = field.visible) == null ? void 0 : _a3.call(field)) === false) return null;
75673
75674
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
75674
75675
  "div",
75675
75676
  {
@@ -75684,13 +75685,14 @@ function GenericEntry(field) {
75684
75685
  );
75685
75686
  }
75686
75687
  function GenericField(props) {
75688
+ var _a3, _b2, _c, _d, _e, _f;
75687
75689
  switch (props.field.type) {
75688
75690
  case "number":
75689
- return /* @__PURE__ */ jsxRuntimeExports.jsx(InputNumber, { state: props.field.state, disabled: !props.field.enabled() });
75691
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(InputNumber, { state: props.field.state, disabled: ((_b2 = (_a3 = props.field).enabled) == null ? void 0 : _b2.call(_a3)) === false });
75690
75692
  case "text":
75691
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericTextField, { state: props.field.state, disabled: !props.field.enabled() });
75693
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericTextField, { state: props.field.state, disabled: !((_d = (_c = props.field).enabled) == null ? void 0 : _d.call(_c)) === false });
75692
75694
  case "bool":
75693
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericBoolField, { state: props.field.state, disabled: !props.field.enabled() });
75695
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericBoolField, { state: props.field.state, disabled: !((_f = (_e = props.field).enabled) == null ? void 0 : _f.call(_e)) === false });
75694
75696
  default:
75695
75697
  return null;
75696
75698
  }