"use strict";

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