"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.CustomizeUsage = void 0;
const React = __importStar(require("react"));
const react_native_1 = require("react-native");
const react_native_2 = require("@fluentui/react-native");
const stack_1 = require("@fluentui-react-native/stack");
const styles_1 = require("../Common/styles");
const RedCaptionBold = react_native_2.Text.customize({ tokens: { variant: 'captionStandard', fontWeight: '700', color: '#ff0000' } });
const OrangeSecondaryBold = react_native_2.Text.customize({ tokens: { variant: 'secondaryStandard', fontWeight: '700', color: '#ff9900' } });
const YellowBodyBold = react_native_2.Text.customize({ tokens: { variant: 'bodyStandard', fontWeight: '700', color: '#f3ce00' } });
const GreenSubheaderBold = react_native_2.Text.customize({ tokens: { variant: 'subheaderStandard', fontWeight: '700', color: '#02c440' } });
const BlueHeaderBold = react_native_2.Text.customize({ tokens: { variant: 'headerStandard', fontWeight: '700', color: '#0229c4' } });
const IndigoHeroBold = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontWeight: '700', color: '#4b0082' } });
const PurpleHeroLargeBold = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontWeight: '700', color: '#8402c4' } });
// Android has a limited fontFamily support and unknown fonts fallback to sans-serif (Roboto).
// Custom fonts (ttf, otf) are supported but need to be linked using 'react-native link'
// The supported font families can be found as <aliases> at https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/fonts.xml
const CustomFontNames = {
    ...react_native_1.Platform.select({
        android: {
            CourierNew: 'courier new',
            Georgia: 'georgia',
            TimesNewRoman: 'times new roman',
        },
        default: {
            CourierNew: 'Courier New',
            Georgia: 'Georgia',
            TimesNewRoman: 'Times New Roman',
        },
    }),
};
const ArialBlack = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontFamily: 'Arial Black' } });
const BrushScriptMT = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontFamily: 'Brush Script MT' } });
const CourierNew = react_native_2.Text.customize({ tokens: { variant: 'headerStandard', fontFamily: CustomFontNames.CourierNew } });
const Georgia = react_native_2.Text.customize({ tokens: { variant: 'subheaderStandard', fontFamily: CustomFontNames.Georgia } });
const TimesNewRoman = react_native_2.Text.customize({ tokens: { variant: 'secondaryStandard', fontFamily: CustomFontNames.TimesNewRoman } });
const Wingdings = react_native_2.Text.customize({ tokens: { variant: 'captionStandard', fontFamily: 'Wingdings' } });
// Examples of supported Android fonts.
const Casual = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontFamily: 'casual' } });
const Cursive = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontFamily: 'cursive' } });
// Examples of iOS fonts.
const Papyrus = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontFamily: 'Papyrus' } });
const Helvetica = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontFamily: 'Helvetica' } });
// Fonts supported on Android and iOS
const Arial = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontFamily: 'arial' } });
const CustomizeUsage = () => {
    const CustomUsageStack = () => {
        return (React.createElement(stack_1.Stack, { style: styles_1.stackStyle, gap: 5 },
            React.createElement(RedCaptionBold, null, "RedCaptionBold"),
            React.createElement(OrangeSecondaryBold, null, "OrangeSecondaryBold"),
            React.createElement(YellowBodyBold, null, "YellowBodyBold"),
            React.createElement(GreenSubheaderBold, null, "GreenSubheaderBold"),
            React.createElement(BlueHeaderBold, null, "BlueHeaderBold"),
            React.createElement(IndigoHeroBold, null, "IndigoHeroBold"),
            React.createElement(PurpleHeroLargeBold, null, "PurpleHeroLargeBold")));
    };
    const CustomFontStack = () => {
        return (React.createElement(stack_1.Stack, { style: styles_1.stackStyle, gap: 5 },
            React.createElement(ArialBlack, null, "Arial Black"),
            React.createElement(BrushScriptMT, null, "Brush Script MT"),
            React.createElement(CourierNew, null, "Courier New"),
            React.createElement(Georgia, null, "Georgia"),
            React.createElement(TimesNewRoman, null, "TimesNewRoman"),
            React.createElement(Wingdings, null, "Wingdings")));
    };
    const CustomFontStackAndroid = () => {
        return (React.createElement(stack_1.Stack, { style: styles_1.stackStyle, gap: 5 },
            React.createElement(Arial, null, "Arial"),
            React.createElement(Casual, null, "Casual"),
            React.createElement(Cursive, null, "Cursive"),
            React.createElement(CourierNew, null, "Courier New"),
            React.createElement(Georgia, null, "Georgia"),
            React.createElement(TimesNewRoman, null, "TimesNewRoman")));
    };
    const CustomFontStackiOS = () => {
        return (React.createElement(stack_1.Stack, { style: styles_1.stackStyle, gap: 5 },
            React.createElement(Arial, null, "Arial"),
            React.createElement(Papyrus, null, "Papyrus"),
            React.createElement(Helvetica, null, "Helvetica"),
            React.createElement(CourierNew, null, "Courier New"),
            React.createElement(Georgia, null, "Georgia"),
            React.createElement(TimesNewRoman, null, "TimesNewRoman")));
    };
    switch (react_native_1.Platform.OS) {
        case 'android':
            return (React.createElement(react_native_1.View, null,
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStackAndroid, null)));
        case 'ios':
            return (React.createElement(react_native_1.View, null,
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStackiOS, null)));
        default:
            return (React.createElement(react_native_1.View, null,
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStack, null)));
    }
};
exports.CustomizeUsage = CustomizeUsage;
//# sourceMappingURL=CustomizeUsage.js.map