"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _compat = require("preact/compat");
var _useLabelMask = require("./useLabelMask");
var _jsxRuntime = require("preact/compat/jsx-runtime");
const LabelMask = props => {
  const field = _compat.Children.only(props.children);
  const {
    labelMask,
    inputProps
  } = (0, _useLabelMask.useLabelMask)(props.labelMask, field.props);
  const input = (0, _compat.cloneElement)(field, inputProps);
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
    children: [labelMask, input]
  });
};
var _default = exports.default = LabelMask;