/*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 MobileMargin =
        /*#__PURE__*/
        function () {
            "use strict";

            function MobileMargin() {
            }

            var _proto = MobileMargin.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.mobileMarginTop + "px " + value.mobileMarginRight + "px " + value.mobileMarginBottom + "px " + value.mobileMarginLeft + "px"
            };

            return MobileMargin;
        }();

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