import { __spreadArray } from "tslib";
import * as React from 'react';
import { Platform } from 'react-native';
import { Shimmer } from '@fluentui-react-native/experimental-shimmer';
import { Stack } from '@fluentui-react-native/stack';
import { E2ETestingShimmer } from './ShimmerE2ETest';
import { shimmerBorderRadiusTests, shimmerRectsAndRect, shimmerRectsAndCircle } from './ShimmerTestElementSets';
import { SHIMMER_TESTPAGE } from '../../../../E2E/src/Shimmer/consts';
import { stackStyle } from '../Common/styles';
import { Test } from '../Test';
var TestCompareCustomizeShimmer = Shimmer.customize({
    shimmerWaveColor: 'blue',
    shimmerColor: 'orange',
    backgroundColor: 'red',
});
export var CustomizeAndTokenPropsShimmers = function () {
    return (React.createElement(Stack, { style: { margin: 4 } },
        React.createElement(TestCompareCustomizeShimmer, { elements: shimmerRectsAndCircle(), duration: 2000, delay: 1000, style: { height: 100, width: '50%', borderWidth: 2, borderColor: 'black' } }),
        React.createElement(Shimmer, { elements: shimmerRectsAndCircle(), duration: 2000, delay: 1000, style: { height: 100, width: '50%', borderWidth: 2, borderColor: 'black' }, shimmerWaveColor: "blue", shimmerColor: "orange", backgroundColor: "red" })));
};
export var RoundedCornerClipCheckShimmer = function () {
    return (React.createElement(Stack, { style: { margin: 4 } },
        React.createElement(Shimmer, { elements: shimmerRectsAndCircle(), duration: 2000, delay: 1000, style: { height: 100, width: 150, borderRadius: 16, borderWidth: 2, borderColor: 'black' }, backgroundColor: "teal" })));
};
var RectShimmers = function () {
    return (React.createElement(Stack, { style: stackStyle },
        React.createElement(Shimmer, { elements: shimmerRectsAndRect(), style: { width: 300, height: 100 } })));
};
var RectCircleShimmers = function () {
    return (React.createElement(Stack, { style: stackStyle },
        React.createElement(Shimmer, { elements: shimmerRectsAndCircle(), duration: 3000, delay: 1000, style: { width: 300, height: 100 } })));
};
var CustomizedShimmer = function () {
    return (React.createElement(Stack, { style: stackStyle },
        React.createElement(CustomizeAndTokenPropsShimmers, null),
        React.createElement(RoundedCornerClipCheckShimmer, null)));
};
var ShimmerBorderRadii = function () {
    return (React.createElement(Stack, { style: stackStyle },
        React.createElement(Shimmer, { elements: shimmerBorderRadiusTests(), duration: 3000, style: { width: 800, height: 400 } })));
};
var shimmerSections = __spreadArray(__spreadArray([
    {
        name: 'Shimmer Rects',
        testID: SHIMMER_TESTPAGE,
        component: RectShimmers,
    },
    {
        name: 'Shimmer Rects and Circle',
        testID: SHIMMER_TESTPAGE,
        component: RectCircleShimmers,
    }
], Platform.select({
    android: [null],
    default: [
        {
            name: 'Border Radius Tests',
            testID: SHIMMER_TESTPAGE,
            component: ShimmerBorderRadii,
        },
        {
            name: 'Customized Shimmer',
            testID: SHIMMER_TESTPAGE,
            component: CustomizedShimmer,
        },
    ],
}), true), [
    {
        name: 'Shimmer for E2E Testing',
        component: E2ETestingShimmer,
    },
], false);
export var ShimmerTest = function () {
    var status = {
        win32Status: 'Beta',
        uwpStatus: 'Backlog',
        iosStatus: 'Beta',
        macosStatus: 'Backlog',
        androidStatus: 'Backlog',
    };
    var description = 'Shimmer is a temporary animation placeholder for when a service call takes time to return data but the rest of the UI should continue rendering.';
    return React.createElement(Test, { name: "Shimmer Test", description: description, sections: shimmerSections, status: status });
};
//# sourceMappingURL=ShimmerTest.js.map