"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.PressableUsage = void 0;
const React = __importStar(require("react"));
const react_native_1 = require("react-native");
const stack_1 = require("@fluentui-react-native/stack");
const text_1 = require("@fluentui-react-native/text");
const styles_1 = require("../Common/styles");
const PressableUsage = () => {
    const _onPress = () => {
        react_native_1.Linking.openURL('https://www.microsoft.com');
    };
    const _onKeyDown = (ev) => {
        if (ev.nativeEvent.key === 'Enter' || ev.nativeEvent.key == 'Space')
            react_native_1.Linking.openURL('https://www.microsoft.com');
    };
    const _onPress2 = () => {
        react_native_1.Alert.alert('Alert', 'Success!');
    };
    const _onPress3 = () => {
        react_native_1.Alert.alert('Alert', 'onAccessibilityTap invoked!');
    };
    const _onKeyDown2 = (ev) => {
        if (ev.nativeEvent.key === 'Enter' || ev.nativeEvent.key == ' ')
            react_native_1.Alert.alert('Alert', 'Success!');
    };
    const handledNativeKeyboardEvents = [{ key: 'Enter' }, { key: 'Space' }];
    return (React.createElement(react_native_1.View, null,
        React.createElement(stack_1.Stack, { style: styles_1.stackStyle, gap: 5 },
            React.createElement(text_1.TextV1, { variant: 'bodyStandard' },
                "To learn more about microsoft, visit this",
                ' ',
                React.createElement(text_1.TextV1, { focusable: true, variant: 'bodyStandard', color: "blue", keyDownEvents: handledNativeKeyboardEvents, onPress: _onPress, onKeyDown: _onKeyDown }, "webpage"),
                ' ',
                "for more details."),
            React.createElement(text_1.TextV1, { variant: 'bodyStandard' },
                "Press",
                ' ',
                React.createElement(text_1.TextV1, { variant: 'bodyStandard', color: "blue", keyDownEvents: handledNativeKeyboardEvents, onPress: _onPress2, onKeyDown: _onKeyDown2, onAccessibilityTap: _onPress3 }, "here"),
                ' ',
                "to view an alert."))));
};
exports.PressableUsage = PressableUsage;
//# sourceMappingURL=PressableUsage.js.map