import { defineStore as u, storeToRefs as d } from "pinia";
import "vue";
import { s as g, Z as i } from "./start-CE9SawgU.js";
import "vue-i18n";
import "./header-Bn1EKnBE.js";
import { p as l } from "./PricingController-CCrwzhY9.js";
import { B as D } from "./base-DtZhM-sH.js";
import { u as f } from "./dictionary-BmJHcR-F.js";
const x = `${D}Dimensions.`, A = {
  /** the returned dimensions are 'mass', 'length', 'area', 'volume' */
  async getRelevant() {
    return g.post(`${x}getRelevant`);
  }
}, B = u(
  "pim-data-type",
  () => {
    const s = f(), { taxClasses: e, isLoading: n } = d(s), { ensureTaxClasses: o } = s, {
      data: t,
      isLoading: r,
      api: a
    } = i({
      apiFn: l.listCurrencies
    }), {
      data: p,
      isLoading: m,
      api: c
    } = i({
      apiFn: A.getRelevant
    });
    return {
      // State
      // Currencies functionality
      currencies: t,
      isCurrenciesLoading: r,
      ensureCurrencies: a,
      // Dimensions functionality
      dimensions: p,
      isDimensionsLoading: m,
      ensureDimensions: c,
      // Tax classes functionality
      taxClasses: e,
      isTaxClassesLoading: n,
      ensureTaxClasses: o
    };
  }
);
export {
  B as u
};
