"use strict";
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;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TabListE2ETest = void 0;
const React = __importStar(require("react"));
const react_native_1 = require("react-native");
const e2e_testing_1 = require("@fluentui-react-native/e2e-testing");
const stack_1 = require("@fluentui-react-native/stack");
const tablist_1 = require("@fluentui-react-native/tablist");
const text_1 = require("@fluentui-react-native/text");
const styles_1 = require("../Common/styles");
const TestProps_1 = require("../Common/TestProps");
const TabListE2ETest = () => {
    const [key, setKey] = React.useState(e2e_testing_1.FIRST_TAB_KEY);
    return (React.createElement(react_native_1.View, null,
        React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
            React.createElement(tablist_1.TabList, { accessibilityLabel: e2e_testing_1.TABLIST_ACCESSIBILITY_LABEL, onTabSelect: setKey, selectedKey: key, ...(0, TestProps_1.testProps)(e2e_testing_1.TABLIST_TEST_COMPONENT) },
                React.createElement(tablist_1.Tab, { tabKey: e2e_testing_1.FIRST_TAB_KEY, accessibilityLabel: e2e_testing_1.FIRST_TAB_ACCESSIBILITY_LABEL, ...(0, TestProps_1.testProps)(e2e_testing_1.FIRST_TAB) }, "Option A"),
                React.createElement(tablist_1.Tab, { tabKey: e2e_testing_1.SECOND_TAB_KEY, ...(0, TestProps_1.testProps)(e2e_testing_1.SECOND_TAB) }, e2e_testing_1.SECOND_TAB_LABEL),
                React.createElement(tablist_1.Tab, { disabled: true, tabKey: e2e_testing_1.THIRD_TAB_KEY, ...(0, TestProps_1.testProps)(e2e_testing_1.THIRD_TAB) }, "Option C"),
                React.createElement(tablist_1.Tab, { tabKey: e2e_testing_1.FOURTH_TAB_KEY, ...(0, TestProps_1.testProps)(e2e_testing_1.FOURTH_TAB) }, "Option D")),
            React.createElement(tablist_1.TabList, null,
                React.createElement(tablist_1.Tab, { tabKey: "1", ...(0, TestProps_1.testProps)(e2e_testing_1.FIFTH_TAB) }, "Option 1"),
                React.createElement(tablist_1.Tab, { tabKey: "2" }, "Option 2"),
                React.createElement(tablist_1.Tab, { disabled: true, tabKey: "3" }, "Option 3"),
                React.createElement(tablist_1.Tab, { tabKey: "4" }, "Option 4")),
            React.createElement(text_1.TextV1, { ...(0, TestProps_1.testProps)(e2e_testing_1.TABLIST_CALLBACK_TEXT) }, key))));
};
exports.TabListE2ETest = TabListE2ETest;
//# sourceMappingURL=TabListE2ETest.js.map