"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get AddButton () {
        return AddButton;
    },
    get Draggable () {
        return Draggable;
    },
    get Selectable () {
        return Selectable;
    }
});
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
var _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
var _plasmaicons = require("@salutejs/plasma-icons");
var _plasmatokensweb = require("@salutejs/plasma-tokens-web");
var _ = require(".");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
var StyledAddButton = _styledcomponents.default.div.withConfig({
    displayName: "PreviewGallery.perftest__StyledAddButton",
    componentId: "sc-9f71e367-0"
})([
    "width:100%;background:",
    ";display:flex;justify-content:center;align-items:center;border-radius:0.75rem;user-select:none;padding-top:56.25%;"
], _plasmatokensweb.surfaceSolid01);
var AddButton = function() {
    return /*#__PURE__*/ _react.default.createElement(StyledAddButton, null);
};
var images = [
    {
        id: Math.random(),
        image: './images/320_320_0.jpg',
        caption: '3:24',
        tooltip: {
            text: 'Высокое качество воспроизведения',
            placement: 'top'
        }
    },
    {
        id: 2 * Math.random(),
        image: './images/320_320_1.jpg',
        isSelected: true
    },
    {
        id: 3 * Math.random(),
        image: './images/320_320_2.jpg',
        actionDisabled: true
    },
    {
        id: 4 * Math.random(),
        image: './images/320_320_3.jpg'
    },
    {
        id: 5 * Math.random(),
        image: './images/320_320_4.jpg'
    },
    {
        id: 6 * Math.random(),
        image: './images/320_320_4.jpg',
        status: 'error'
    },
    {
        id: 7 * Math.random(),
        tooltip: {
            placement: 'bottom',
            text: 'Не сильно высокое качество воспроизведения',
            animated: false
        },
        component: /*#__PURE__*/ _react.default.createElement(AddButton, null),
        customClickHandle: function() {}
    }
];
var selectableProps = {};
var func = function() {};
var Selectable = function() {
    return /*#__PURE__*/ _react.default.createElement(_.PreviewGallery, {
        items: images,
        onItemAction: func,
        actionIcon: /*#__PURE__*/ _react.default.createElement(_plasmaicons.IconTrashFilled, {
            size: "xs",
            color: "inherit"
        }),
        onItemClick: func
    });
};
var draggableProps = {};
var Draggable = function() {
    return /*#__PURE__*/ _react.default.createElement(_.PreviewGallery, {
        interactionType: "draggable",
        items: images,
        actionIcon: /*#__PURE__*/ _react.default.createElement(_plasmaicons.IconTrash, {
            size: "xs",
            color: "inherit"
        }),
        onItemAction: func,
        onItemsSortEnd: func
    });
};
