import { jsxDEV } from "react/jsx-dev-runtime";
import { UrlInput } from "@contember/ui";
import { useFieldControl } from "./useFieldControl.js";
import { SimpleRelativeSingleField } from "../auxiliary/SimpleRelativeSingleField/SimpleRelativeSingleField.js";
const parse = (value) => value ?? null;
const format = (value) => value ?? null;
const UrlField = SimpleRelativeSingleField(
  (fieldMetadata, {
    name,
    ...props
  }) => {
    const inputProps = useFieldControl({
      ...props,
      fieldMetadata,
      parse,
      format
    });
    return /* @__PURE__ */ jsxDEV(UrlInput, { ...inputProps }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/UrlField.tsx",
      lineNumber: 30,
      columnNumber: 10
    }, globalThis);
  },
  "UrlField"
);
export {
  UrlField
};
//# sourceMappingURL=UrlField.js.map
