var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "react", "../context"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var react_1 = __importStar(require("react"));
    var context_1 = require("../context");
    function IconCardSurfaceComponent(props, ref) {
        var prefixFromContext = (0, react_1.useContext)(context_1.Context).prefix;
        var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? true : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
        var prefix = prefixFromProps || prefixFromContext || 'hiagent';
        var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
        return react_1.default.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-card-surface").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 16 16" }, rest, { ref: ref }),
            react_1.default.createElement("path", { d: "M12.4043 2C13.8376 2.0002 14.999 3.16243 14.999 4.5957V11.8311C14.999 13.2643 13.8376 14.4266 12.4043 14.4268H3.59473C2.16141 14.4266 1.00001 13.2643 1 11.8311V4.5957C1 3.1624 2.1614 2.00015 3.59473 2H12.4043ZM3.66699 10.3672C3.57859 10.3672 3.49318 10.4023 3.43066 10.4648C3.36841 10.5273 3.33398 10.612 3.33398 10.7002V11.3672C3.33407 11.4554 3.36838 11.5401 3.43066 11.6025C3.49318 11.6651 3.57859 11.7002 3.66699 11.7002H8.33398C8.42221 11.7001 8.50694 11.6649 8.56934 11.6025C8.63172 11.5401 8.66691 11.4554 8.66699 11.3672V10.7002C8.66699 10.6119 8.6317 10.5273 8.56934 10.4648C8.50694 10.4024 8.42221 10.3673 8.33398 10.3672H3.66699ZM3.66699 7.7002C3.57859 7.7002 3.49318 7.73534 3.43066 7.79785C3.36838 7.86026 3.33407 7.94503 3.33398 8.0332V8.7002C3.33398 8.78841 3.36841 8.87307 3.43066 8.93555C3.49318 8.99806 3.57859 9.0332 3.66699 9.0332H6C6.08841 9.0332 6.17382 8.99806 6.23633 8.93555C6.29859 8.87307 6.33398 8.78841 6.33398 8.7002V8.0332C6.3339 7.94503 6.29861 7.86026 6.23633 7.79785C6.17382 7.73534 6.08841 7.7002 6 7.7002H3.66699ZM9.33398 4.7002C9.24558 4.7002 9.16017 4.73534 9.09766 4.79785C9.03527 4.86028 9.00009 4.94495 9 5.0332V8.7002C9 8.78849 9.0353 8.87306 9.09766 8.93555C9.16017 8.99806 9.24558 9.0332 9.33398 9.0332H12.334C12.4222 9.03307 12.5069 8.99794 12.5693 8.93555C12.6317 8.87306 12.667 8.78849 12.667 8.7002V5.0332C12.6669 4.94495 12.6317 4.86028 12.5693 4.79785C12.5069 4.73545 12.4222 4.70032 12.334 4.7002H9.33398ZM11.334 6.0332V7.7002H10.334V6.0332H11.334Z" }));
    }
    var IconCardSurface = react_1.default.forwardRef(IconCardSurfaceComponent);
    exports.default = IconCardSurface;
});
