import { Component, triggerEventOnly, triggerCatchEvent, getValueFromProps, } from '../_util/simply';
import { TypographyDefaultProps } from './props';
Component(TypographyDefaultProps, {
    onTap: function (e) {
        var disabled = getValueFromProps(this, 'disabled');
        if (disabled) {
            triggerEventOnly(this, 'disabledTap', e);
            return;
        }
        triggerEventOnly(this, 'tap', e);
    },
    catchTap: function (e) {
        var disabled = getValueFromProps(this, 'disabled');
        if (disabled) {
            triggerEventOnly(this, 'disabledTap', e);
            return;
        }
        triggerCatchEvent(this, 'catchTap', e);
    },
}, { phonemodel: '' }, null, {
    onInit: function () {
        var platform = my.env.platform;
        this.setData({
            phonemodel: platform,
        });
    },
});
