// Copyright (c) 2009-2026 SAP SE, All Rights Reserved

/**
 * @fileOverview URLShortening
 *
 * Service wrapper for the sap/ushell/utils/UrlShortening module.
 * @deprecated since 1.118. Please use {@link sap.ushell.utils.UrlShortening} directly.
 *
 * @version 1.148.1
 */
sap.ui.define([
    "sap/ushell/utils/DeprecationLog",
    "sap/ushell/utils/UrlShortening"
], (
    DeprecationLog,
    UrlShortening
) => {
    "use strict";
    function URLShortening () {
        DeprecationLog.logModuleDeprecation({
            module: "sap.ushell.services.URLShortening",
            since: "1.118",
            successor: "sap.ushell.utils.UrlShortening"
        });

        this.compactHash = UrlShortening.compactHash.bind(UrlShortening);
        this.checkHashLength = UrlShortening.checkHashLength.bind(UrlShortening);
        this.expandHash = UrlShortening.expandHash.bind(UrlShortening);
        this.expandParamGivenRetrievalFunction = UrlShortening.expandParamGivenRetrievalFunction.bind(UrlShortening);
    }

    URLShortening.hasNoAdapter = true;
    return URLShortening;
}, true /* bExport */);
