/**
 * @license
 * Copyright 2022-2025 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { UnitLocalization } from "#clusters/unit-localization";
import { UnitLocalizationBehavior } from "./UnitLocalizationBehavior.js";
class UnitLocalizationServer extends UnitLocalizationBehavior.with("TemperatureUnit") {
  initialize() {
    if (this.state.temperatureUnit === void 0) {
      this.state.temperatureUnit = UnitLocalization.TempUnit.Celsius;
    }
    if (!this.state.supportedTemperatureUnits?.length) {
      this.state.supportedTemperatureUnits = [
        UnitLocalization.TempUnit.Celsius,
        UnitLocalization.TempUnit.Fahrenheit
      ];
    }
  }
}
export {
  UnitLocalizationServer
};
//# sourceMappingURL=UnitLocalizationServer.js.map
