/*eslint-disable */
define(["Magento_PageBuilder/js/config", "Magento_PageBuilder/js/utils/image", "Magento_PageBuilder/js/utils/object", "Magento_PageBuilder/js/utils/url"], function (_config, _image, _object, _url) {
    /**
     * Copyright © Magento, Inc. All rights reserved.
     * See COPYING.txt for license details.
     */

    /**
     * @api
     */
    var MobilePadding =
        /*#__PURE__*/
        function () {
            "use strict";

            function MobilePadding() {
            }

            var _proto = MobilePadding.prototype;

            /**
             * Convert value to internal format
             *
             * @param value string
             * @returns {string | object}
             */
            _proto.fromDom = function fromDom(value) {

                if (!value) {
                    return "";
                }

                return value
            }
            /**
             * Convert value to knockout format
             *
             * @param {string} name
             * @param {DataObject} data
             * @returns {string}
             */
            ;

            _proto.toDom = function toDom(name, data) {
                var value = (0, _object.get)(data, name);
                if (typeof value !== 'object' && toString(value) !== "[object Object]") {
                    return "";
                }

                return value.mobilePaddingTop + "px " + value.mobilePaddingRight + "px " + value.mobilePaddingBottom + "px " + value.mobilePaddingLeft + "px"

            };

            return MobilePadding;
        }();

    return MobilePadding;
});
//# sourceMappingURL=src.js.map
