"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.imports = void 0;
const transpile_1 = require("../../transpile");
exports.imports = [
    { name: 'WmSlider', from: '@wavemaker/app-rn-runtime/components/input/slider/slider.component' }
];
exports.default = {
    pre: (element, context) => {
        let getDisplayExpression = (0, transpile_1.createExpression)(element, 'displayexpression');
        if (getDisplayExpression) {
            element.removeAttribute('displayexpression');
            element.removeAttribute('displayfield');
        }
        let getToolTipExpression = (0, transpile_1.createExpression)(element, 'tooltipexpression');
        if (getToolTipExpression) {
            element.removeAttribute('tooltipexpression');
        }
        return `<WmSlider 
      ${(0, transpile_1.transformAttrs)(element, context)} 
      ${getDisplayExpression ? `getDisplayExpression=${getDisplayExpression}` : ''}
      ${getToolTipExpression ? `getToolTipExpression=${getToolTipExpression}` : ''}>`;
    },
    post: (element, context) => '</WmSlider>',
    imports: (element, context) => exports.imports
};
//# sourceMappingURL=slider.transformer.js.map