import { defineStore as u, storeToRefs as d } from "pinia";
import "vue";
import { o as g, aJ as i } from "./start-BYfL32Oe.mjs";
import "vue-i18n";
import "vue-router";
import "./header-Droxy2Kd.mjs";
import "./moment-h96o7c8I.mjs";
import { p as l } from "./PricingController-Bn7qwpk_.mjs";
import { B as f } from "./base-CD_Q6J1k.mjs";
import { u as x } from "./dictionary-TYJ-09MM.mjs";
const A = `${f}Dimensions.`, C = {
  /** the returned dimensions are 'mass', 'length', 'area', 'volume' */
  async getRelevant() {
    return g.post(`${A}getRelevant`);
  }
}, _ = u("pim-data-type", () => {
  const s = x(), { taxClasses: e, isLoading: o } = d(s), { ensureTaxClasses: n } = s, {
    data: t,
    isLoading: r,
    api: a
  } = i({
    apiFn: l.listCurrencies
  }), {
    data: p,
    isLoading: m,
    api: c
  } = i({
    apiFn: C.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: o,
    ensureTaxClasses: n
  };
});
export {
  _ as u
};
