"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CnCurrencyAmountNumberPickerPro = void 0;
const cn_ui_1 = require("@cainiaofe/cn-ui");
// import { CnCurrencyAmountNumberPickerPro as UiCnCurrencyAmountNumberPickerPro } from '@alife/cn-domain-i18n';
const react_1 = __importDefault(require("react"));
const mapStatus_1 = require("../../mapStatus.js");
const { connect, mapProps } = cn_ui_1.formilyReact;
exports.CnCurrencyAmountNumberPickerPro = connect((props) => {
    var _a, _b, _c;
    const ComponentUI = (_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.cnLowCodeUtils) === null || _a === void 0 ? void 0 : _a.filterItem) === null || _b === void 0 ? void 0 : _b.getRunTimeItem) === null || _c === void 0 ? void 0 : _c.call(_b, 'CnCurrencyAmountNumberPickerPro');
    // 如果低码组件不存在，使用原生组件作为回退
    if (!(ComponentUI === null || ComponentUI === void 0 ? void 0 : ComponentUI.formComponent)) {
        return (
        // <UiCnCurrencyAmountNumberPickerPro
        //   {...props}
        //   className="cn-ai-table-schema-field__item--full-width"
        // />
        null);
    }
    const FormComponent = ComponentUI.formComponent;
    return react_1.default.createElement(FormComponent, { ...props, className: "cn-ai-table-schema-field__item--full-width" });
}, mapProps(mapStatus_1.mapStatus, {
    dataSource: true,
}));
exports.CnCurrencyAmountNumberPickerPro.displayName = 'CnCurrencyAmountNumberPickerPro';
