/*eslint-disable */
define([], function () {
    /**
     * Copyright © Magento, Inc. All rights reserved.
     * See COPYING.txt for license details.
     */

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

            function Link() {
            }

            var _proto = Link.prototype;

            /**
             * Read link from element
             *
             * @param {HTMLElement} element
             * @returns {string | object}
             */
            _proto.read = function read(element) {
                var _ref;

                var href = element.getAttribute("data-link-href-3");
                var attributeLinkType = element.getAttribute("data-link-type-3");

                if (typeof href === "string" && attributeLinkType !== "default") {
                    href = element.getAttribute("data-link-href-3");
                }

                return _ref = {}, _ref[attributeLinkType] = href, _ref.setting = element.getAttribute("data-link-target-3") === "_blank", _ref.type = attributeLinkType, _ref;
            }

            return Link;
        }();

    return Link;
});
//# sourceMappingURL=link.js.map
