@medusajs/dashboard 2.12.3-preview-20251217123836 → 2.12.3-snapshot-20251217081413

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/app.css +0 -10
  2. package/dist/app.js +373 -483
  3. package/dist/app.mjs +1 -1
  4. package/dist/{chunk-VFF5WB7C.mjs → chunk-FJR3D6EM.mjs} +10 -14
  5. package/dist/en.json +1 -1
  6. package/dist/{product-attributes-MXDPSOWM.mjs → product-attributes-S535VXSC.mjs} +1 -1
  7. package/dist/{product-create-3O34JJLS.mjs → product-create-DKBLOS3M.mjs} +1 -1
  8. package/dist/{product-detail-SYTLG5D3.mjs → product-detail-D2PJ64Q3.mjs} +1 -1
  9. package/dist/{product-edit-W72S22NM.mjs → product-edit-K6CAQD5H.mjs} +1 -1
  10. package/dist/{product-organization-SVXTCWIF.mjs → product-organization-IQFN54D2.mjs} +1 -1
  11. package/dist/{chunk-IKTGFXWR.mjs → store-add-locales-I4GX3KAY.mjs} +66 -1
  12. package/dist/{translation-list-FK7XYLHX.mjs → translation-list-KSM4QA3K.mjs} +109 -182
  13. package/package.json +9 -9
  14. package/src/dashboard-app/routes/get-route.map.tsx +0 -4
  15. package/src/i18n/translations/en.json +1 -1
  16. package/src/i18n/translations/es.json +1 -1
  17. package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +16 -41
  18. package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +1 -5
  19. package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +103 -144
  20. package/dist/add-locales-GGNZCABB.mjs +0 -81
  21. package/dist/store-add-locales-GWCGIXHU.mjs +0 -81
  22. package/src/routes/translations/add-locales/add-locales.tsx +0 -29
  23. package/src/routes/translations/add-locales/index.tsx +0 -1
package/dist/app.js CHANGED
@@ -11917,7 +11917,7 @@ var init_en = __esm({
11917
11917
  completion: {
11918
11918
  heading: "Translated fields",
11919
11919
  translated: "Translated",
11920
- toTranslate: "Missing",
11920
+ toTranslate: "To be translated",
11921
11921
  footer: "Languages"
11922
11922
  }
11923
11923
  },
@@ -15149,7 +15149,7 @@ var init_es = __esm({
15149
15149
  completion: {
15150
15150
  heading: "Textos traducidos",
15151
15151
  translated: "Traducidos",
15152
- toTranslate: "Faltantes",
15152
+ toTranslate: "Por traducir",
15153
15153
  footer: "Idiomas"
15154
15154
  }
15155
15155
  },
@@ -190748,9 +190748,8 @@ var init_active_locales_section = __esm({
190748
190748
  }) => {
190749
190749
  const { t: t5 } = (0, import_react_i18next483.useTranslation)();
190750
190750
  const navigate = (0, import_react_router_dom245.useNavigate)();
190751
- const [isHovered, setIsHovered] = (0, import_react304.useState)(false);
190752
190751
  const handleManageLocales = (0, import_react304.useCallback)(() => {
190753
- navigate("/settings/translations/add-locales");
190752
+ navigate("/settings/store/locales");
190754
190753
  }, [navigate]);
190755
190754
  const renderLocales = (0, import_react304.useCallback)(() => {
190756
190755
  const maxLocalesToDetail = 2;
@@ -190765,28 +190764,13 @@ var init_active_locales_section = __esm({
190765
190764
  /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.Heading, { level: "h2", children: t5("translations.activeLocales.heading") }),
190766
190765
  /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.IconButton, { variant: "transparent", onClick: handleManageLocales, children: /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_icons174.PencilSquare, {}) })
190767
190766
  ] }),
190768
- /* @__PURE__ */ (0, import_jsx_runtime686.jsx)("div", { className: "px-1 pb-1", children: hasLocales ? /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(
190769
- import_ui450.Tooltip,
190770
- {
190771
- open: isHovered,
190772
- content: /* @__PURE__ */ (0, import_jsx_runtime686.jsx)("div", { className: "flex flex-col gap-y-1 p-1", children: locales.map((locale) => /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.Text, { size: "small", weight: "plus", children: locale.name }, locale.code)) }),
190773
- children: /* @__PURE__ */ (0, import_jsx_runtime686.jsxs)(
190774
- import_ui450.Container,
190775
- {
190776
- className: "bg-ui-bg-component border-r-1 flex items-center gap-x-4 px-[19px] py-2",
190777
- onMouseEnter: () => setIsHovered(true),
190778
- onMouseLeave: () => setIsHovered(false),
190779
- children: [
190780
- /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(IconAvatar, { className: "border-ui-border-base border", children: /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_icons174.Language, {}) }),
190781
- /* @__PURE__ */ (0, import_jsx_runtime686.jsxs)("div", { className: "flex flex-col", children: [
190782
- /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.Text, { size: "small", weight: "plus", children: t5("translations.activeLocales.subtitle") }),
190783
- /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.Text, { className: "text-ui-fg-subtle", size: "small", children: renderLocales() })
190784
- ] })
190785
- ]
190786
- }
190787
- )
190788
- }
190789
- ) : /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.InlineTip, { label: "Tip", children: t5("translations.activeLocales.noLocalesTip") }) })
190767
+ /* @__PURE__ */ (0, import_jsx_runtime686.jsx)("div", { className: "px-1 pb-1", children: hasLocales ? /* @__PURE__ */ (0, import_jsx_runtime686.jsxs)(import_ui450.Container, { className: "bg-ui-bg-component flex items-center gap-x-4 px-6 py-2", children: [
190768
+ /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(IconAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_icons174.Language, {}) }),
190769
+ /* @__PURE__ */ (0, import_jsx_runtime686.jsxs)("div", { className: "flex flex-col", children: [
190770
+ /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.Text, { size: "small", weight: "plus", children: t5("translations.activeLocales.subtitle") }),
190771
+ /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.Text, { className: "text-ui-fg-subtle", size: "small", children: renderLocales() })
190772
+ ] })
190773
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime686.jsx)(import_ui450.InlineTip, { label: "Tip", children: t5("translations.activeLocales.noLocalesTip") }) })
190790
190774
  ] });
190791
190775
  };
190792
190776
  }
@@ -190820,15 +190804,7 @@ var init_translation_list_section = __esm({
190820
190804
  import_react_router_dom246.Link,
190821
190805
  {
190822
190806
  to: `/settings/translations/edit?reference=${entity.reference}`,
190823
- children: /* @__PURE__ */ (0, import_jsx_runtime687.jsx)(
190824
- import_ui451.Button,
190825
- {
190826
- variant: "secondary",
190827
- size: "small",
190828
- disabled: !hasLocales || !entity.totalCount,
190829
- children: "Edit"
190830
- }
190831
- )
190807
+ children: /* @__PURE__ */ (0, import_jsx_runtime687.jsx)(import_ui451.Button, { variant: "secondary", size: "small", disabled: !hasLocales, children: "Edit" })
190832
190808
  }
190833
190809
  )
190834
190810
  ]
@@ -190916,8 +190892,7 @@ var init_translations_completion_section = __esm({
190916
190892
  className: "mr-0.5 h-full rounded-sm transition-all",
190917
190893
  style: {
190918
190894
  width: `${percentage}%`,
190919
- backgroundColor: "var(--tag-blue-icon)",
190920
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
190895
+ backgroundColor: "var(--bg-interactive)"
190921
190896
  }
190922
190897
  }
190923
190898
  ),
@@ -190926,8 +190901,8 @@ var init_translations_completion_section = __esm({
190926
190901
  {
190927
190902
  className: "h-full flex-1 rounded-sm",
190928
190903
  style: {
190929
- backgroundColor: "var(--tag-blue-border)",
190930
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
190904
+ backgroundColor: "var(--bg-interactive)",
190905
+ opacity: 0.3
190931
190906
  }
190932
190907
  }
190933
190908
  )
@@ -190936,8 +190911,8 @@ var init_translations_completion_section = __esm({
190936
190911
  {
190937
190912
  className: "h-full w-full rounded-sm",
190938
190913
  style: {
190939
- backgroundColor: "var(--tag-blue-border)",
190940
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
190914
+ backgroundColor: "var(--bg-interactive)",
190915
+ opacity: 0.3
190941
190916
  }
190942
190917
  }
190943
190918
  ) }),
@@ -190953,158 +190928,117 @@ var init_translations_completion_section = __esm({
190953
190928
  ] })
190954
190929
  ] })
190955
190930
  ] }),
190956
- localeStats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)(import_jsx_runtime688.Fragment, { children: [
190957
- /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(import_ui452.Divider, { variant: "dashed" }),
190958
- /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex flex-col gap-y-3 px-6 pb-6 pt-4", children: [
190959
- /* @__PURE__ */ (0, import_jsx_runtime688.jsx)("div", { className: "flex h-32 w-full items-end gap-1", children: localeStats.map((locale) => {
190960
- const heightPercent = locale.total / maxTotal * 100;
190961
- const translatedPercent = locale.total > 0 ? locale.translated / locale.total * 100 : 0;
190962
- return /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
190963
- import_ui452.Tooltip,
190964
- {
190965
- open: hoveredLocale === locale.code,
190966
- content: /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex min-w-[150px] flex-col gap-y-1 p-1", children: [
190967
- /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(import_ui452.Text, { size: "small", weight: "plus", children: locale.name }),
190968
- /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex items-center justify-between", children: [
190969
- /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex items-center gap-x-2", children: [
190970
- /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
190971
- "div",
190972
- {
190973
- className: "h-2 w-2 rounded-full",
190974
- style: {
190975
- backgroundColor: "var(--tag-blue-icon)",
190976
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
190977
- }
190978
- }
190979
- ),
190980
- /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
190981
- import_ui452.Text,
190982
- {
190983
- size: "small",
190984
- weight: "plus",
190985
- className: "text-ui-fg-base",
190986
- children: t5("translations.completion.translated")
190987
- }
190988
- )
190989
- ] }),
190931
+ localeStats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "border-ui-border-strong flex flex-col gap-y-3 border-t border-dashed px-6 pb-6 pt-4", children: [
190932
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsx)("div", { className: "flex h-32 w-full items-end gap-1", children: localeStats.map((locale) => {
190933
+ const heightPercent = locale.total / maxTotal * 100;
190934
+ const translatedPercent = locale.total > 0 ? locale.translated / locale.total * 100 : 0;
190935
+ return /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
190936
+ import_ui452.Tooltip,
190937
+ {
190938
+ open: hoveredLocale === locale.code,
190939
+ content: /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex flex-col gap-y-1 p-1", children: [
190940
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(import_ui452.Text, { size: "small", weight: "plus", children: locale.name }),
190941
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex items-center justify-between", children: [
190942
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex items-center gap-x-2", children: [
190990
190943
  /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
190991
- import_ui452.Text,
190944
+ "div",
190992
190945
  {
190993
- size: "small",
190994
- weight: "plus",
190995
- className: "text-ui-fg-base",
190996
- children: locale.translated
190946
+ className: "h-2 w-2 rounded-full",
190947
+ style: { backgroundColor: "var(--bg-interactive)" }
190997
190948
  }
190998
- )
190999
- ] }),
191000
- /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex items-center justify-between", children: [
191001
- /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex items-center gap-x-2", children: [
191002
- /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191003
- "div",
191004
- {
191005
- className: "h-2 w-2 rounded-full",
191006
- style: {
191007
- backgroundColor: "var(--tag-blue-border)",
191008
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
191009
- }
191010
- }
191011
- ),
191012
- /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191013
- import_ui452.Text,
191014
- {
191015
- size: "small",
191016
- weight: "plus",
191017
- className: "text-ui-fg-base",
191018
- children: t5("translations.completion.toTranslate")
191019
- }
191020
- )
191021
- ] }),
190949
+ ),
191022
190950
  /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191023
190951
  import_ui452.Text,
191024
190952
  {
191025
190953
  size: "small",
191026
190954
  weight: "plus",
191027
- className: "text-ui-fg-base",
191028
- children: locale.toTranslate
190955
+ className: "text-ui-fg-subtle",
190956
+ children: t5("translations.completion.translated")
191029
190957
  }
191030
190958
  )
191031
- ] })
190959
+ ] }),
190960
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(import_ui452.Text, { size: "small", weight: "plus", children: locale.translated })
191032
190961
  ] }),
191033
- children: /* @__PURE__ */ (0, import_jsx_runtime688.jsx)("div", { className: "flex h-full flex-1 items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191034
- "div",
191035
- {
191036
- className: "flex w-full min-w-2 max-w-[96px] flex-col justify-end overflow-hidden rounded-t-sm transition-opacity",
191037
- style: { height: `${heightPercent}%` },
191038
- onMouseEnter: () => setHoveredLocale(locale.code),
191039
- onMouseLeave: () => setHoveredLocale(null),
191040
- children: translatedPercent === 0 ? /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
190962
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)("div", { className: "flex items-center gap-x-2", children: [
190963
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
190964
+ "div",
190965
+ {
190966
+ className: "h-2 w-2 rounded-full",
190967
+ style: {
190968
+ backgroundColor: "var(--bg-interactive)",
190969
+ opacity: 0.3
190970
+ }
190971
+ }
190972
+ ),
190973
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
190974
+ import_ui452.Text,
190975
+ {
190976
+ size: "small",
190977
+ weight: "plus",
190978
+ className: "text-ui-fg-subtle",
190979
+ children: t5("translations.completion.toTranslate")
190980
+ }
190981
+ ),
190982
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(import_ui452.Text, { size: "small", weight: "plus", children: locale.toTranslate })
190983
+ ] })
190984
+ ] }),
190985
+ children: /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)(
190986
+ "div",
190987
+ {
190988
+ className: "flex min-w-2 flex-1 flex-col justify-end overflow-hidden rounded-t-sm transition-opacity",
190989
+ style: { height: `${heightPercent}%` },
190990
+ onMouseEnter: () => setHoveredLocale(locale.code),
190991
+ onMouseLeave: () => setHoveredLocale(null),
190992
+ children: [
190993
+ /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191041
190994
  "div",
191042
190995
  {
191043
- className: "w-full rounded-sm",
190996
+ className: "w-full rounded-t-sm",
191044
190997
  style: {
191045
- height: "100%",
191046
- backgroundColor: "var(--tag-neutral-bg)",
191047
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
190998
+ height: `${100 - translatedPercent}%`,
190999
+ backgroundColor: "var(--bg-interactive)",
191000
+ opacity: 0.3,
191001
+ minHeight: locale.toTranslate > 0 ? "2px" : "0"
191048
191002
  }
191049
191003
  }
191050
- ) : /* @__PURE__ */ (0, import_jsx_runtime688.jsxs)(import_jsx_runtime688.Fragment, { children: [
191051
- /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191052
- "div",
191053
- {
191054
- className: "w-full rounded-sm",
191055
- style: {
191056
- height: `${100 - translatedPercent}%`,
191057
- backgroundColor: "var(--tag-blue-border)",
191058
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
191059
- minHeight: locale.toTranslate > 0 ? "2px" : "0"
191060
- }
191061
- }
191062
- ),
191063
- translatedPercent > 0 && /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191064
- "div",
191065
- {
191066
- className: "mt-0.5 w-full rounded-sm",
191067
- style: {
191068
- height: `${translatedPercent}%`,
191069
- backgroundColor: "var(--tag-blue-icon)",
191070
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
191071
- minHeight: locale.translated > 0 ? "2px" : "0"
191072
- }
191004
+ ),
191005
+ translatedPercent > 0 && /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191006
+ "div",
191007
+ {
191008
+ className: "mt-0.5 w-full rounded-sm",
191009
+ style: {
191010
+ height: `${translatedPercent}%`,
191011
+ backgroundColor: "var(--bg-interactive)",
191012
+ minHeight: locale.translated > 0 ? "2px" : "0"
191073
191013
  }
191074
- )
191075
- ] })
191076
- }
191077
- ) })
191078
- },
191079
- locale.code
191080
- );
191081
- }) }),
191082
- localeStatsCount < 9 && /* @__PURE__ */ (0, import_jsx_runtime688.jsx)("div", { className: "flex w-full gap-1", children: localeStats.map((locale) => /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191083
- "div",
191084
- {
191085
- className: "flex flex-1 items-center justify-center",
191086
- children: /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191087
- import_ui452.Text,
191088
- {
191089
- size: "xsmall",
191090
- weight: "plus",
191091
- className: "text-ui-fg-subtle min-w-2 whitespace-normal break-words text-center leading-tight",
191092
- children: localeStatsCount < 6 ? locale.name : locale.code
191014
+ }
191015
+ )
191016
+ ]
191093
191017
  }
191094
191018
  )
191095
191019
  },
191096
191020
  locale.code
191097
- )) }),
191098
- localeStatsCount > 9 && /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191099
- import_ui452.Text,
191100
- {
191101
- weight: "plus",
191102
- size: "xsmall",
191103
- className: "text-ui-fg-subtle text-center",
191104
- children: t5("translations.completion.footer")
191105
- }
191106
- )
191107
- ] })
191021
+ );
191022
+ }) }),
191023
+ localeStatsCount < 9 && /* @__PURE__ */ (0, import_jsx_runtime688.jsx)("div", { className: "flex w-full gap-1", children: localeStats.map((locale) => /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191024
+ import_ui452.Text,
191025
+ {
191026
+ size: "xsmall",
191027
+ weight: "plus",
191028
+ className: "text-ui-fg-subtle min-w-2 flex-1 whitespace-normal break-words text-center leading-tight",
191029
+ children: localeStatsCount < 6 ? locale.name : locale.code
191030
+ },
191031
+ locale.code
191032
+ )) }),
191033
+ localeStatsCount > 9 && /* @__PURE__ */ (0, import_jsx_runtime688.jsx)(
191034
+ import_ui452.Text,
191035
+ {
191036
+ weight: "plus",
191037
+ size: "xsmall",
191038
+ className: "text-ui-fg-subtle text-center",
191039
+ children: t5("translations.completion.footer")
191040
+ }
191041
+ )
191108
191042
  ] })
191109
191043
  ] });
191110
191044
  };
@@ -191897,55 +191831,15 @@ var init_translations_edit2 = __esm({
191897
191831
  }
191898
191832
  });
191899
191833
 
191900
- // src/routes/translations/add-locales/add-locales.tsx
191901
- var import_react_router_dom248, import_jsx_runtime692, TranslationsAddLocales;
191902
- var init_add_locales = __esm({
191903
- "src/routes/translations/add-locales/add-locales.tsx"() {
191904
- "use strict";
191905
- init_route_focus_modal2();
191906
- init_api();
191907
- init_feature_flag_provider();
191908
- import_react_router_dom248 = require("react-router-dom");
191909
- init_add_locales_form();
191910
- import_jsx_runtime692 = require("react/jsx-runtime");
191911
- TranslationsAddLocales = () => {
191912
- const isEnabled = useFeatureFlag("translation");
191913
- const navigate = (0, import_react_router_dom248.useNavigate)();
191914
- if (!isEnabled) {
191915
- navigate(-1);
191916
- return null;
191917
- }
191918
- const { store, isPending, isError, error } = useStore();
191919
- const ready = !!store && !isPending;
191920
- if (isError) {
191921
- throw error;
191922
- }
191923
- return /* @__PURE__ */ (0, import_jsx_runtime692.jsx)(RouteFocusModal, { children: ready && /* @__PURE__ */ (0, import_jsx_runtime692.jsx)(AddLocalesForm, { store }) });
191924
- };
191925
- }
191926
- });
191927
-
191928
- // src/routes/translations/add-locales/index.tsx
191929
- var add_locales_exports = {};
191930
- __export(add_locales_exports, {
191931
- Component: () => TranslationsAddLocales
191932
- });
191933
- var init_add_locales2 = __esm({
191934
- "src/routes/translations/add-locales/index.tsx"() {
191935
- "use strict";
191936
- init_add_locales();
191937
- }
191938
- });
191939
-
191940
191834
  // src/components/common/logo-box/avatar-box.tsx
191941
191835
  function AvatarBox({ checked }) {
191942
- return /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)(
191836
+ return /* @__PURE__ */ (0, import_jsx_runtime692.jsxs)(
191943
191837
  IconAvatar,
191944
191838
  {
191945
191839
  size: "xlarge",
191946
191840
  className: "bg-ui-button-neutral shadow-buttons-neutral after:button-neutral-gradient relative mb-4 flex h-[50px] w-[50px] items-center justify-center rounded-xl after:inset-0 after:content-['']",
191947
191841
  children: [
191948
- checked && /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
191842
+ checked && /* @__PURE__ */ (0, import_jsx_runtime692.jsx)(
191949
191843
  import_react309.motion.div,
191950
191844
  {
191951
191845
  className: "absolute -right-[5px] -top-1 flex size-5 items-center justify-center rounded-full border-[0.5px] border-[rgba(3,7,18,0.2)] bg-[#3B82F6] bg-gradient-to-b from-white/0 to-white/20 shadow-[0px_1px_2px_0px_rgba(3,7,18,0.12),0px_1px_2px_0px_rgba(255,255,255,0.10)_inset,0px_-1px_5px_0px_rgba(255,255,255,0.10)_inset,0px_0px_0px_0px_rgba(3,7,18,0.06)_inset]",
@@ -191956,7 +191850,7 @@ function AvatarBox({ checked }) {
191956
191850
  delay: 0.8,
191957
191851
  ease: [0, 0.71, 0.2, 1.01]
191958
191852
  },
191959
- children: /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
191853
+ children: /* @__PURE__ */ (0, import_jsx_runtime692.jsx)(
191960
191854
  "svg",
191961
191855
  {
191962
191856
  xmlns: "http://www.w3.org/2000/svg",
@@ -191964,7 +191858,7 @@ function AvatarBox({ checked }) {
191964
191858
  height: "20",
191965
191859
  viewBox: "0 0 20 20",
191966
191860
  fill: "none",
191967
- children: /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
191861
+ children: /* @__PURE__ */ (0, import_jsx_runtime692.jsx)(
191968
191862
  import_react309.motion.path,
191969
191863
  {
191970
191864
  d: "M5.8335 10.4167L9.16683 13.75L14.1668 6.25",
@@ -191986,7 +191880,7 @@ function AvatarBox({ checked }) {
191986
191880
  )
191987
191881
  }
191988
191882
  ),
191989
- /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)(
191883
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsxs)(
191990
191884
  "svg",
191991
191885
  {
191992
191886
  className: "rounded-[10px]",
@@ -191994,8 +191888,8 @@ function AvatarBox({ checked }) {
191994
191888
  fill: "none",
191995
191889
  xmlns: "http://www.w3.org/2000/svg",
191996
191890
  children: [
191997
- /* @__PURE__ */ (0, import_jsx_runtime693.jsx)("rect", { width: "400", height: "400", fill: "#18181B" }),
191998
- /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
191891
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsx)("rect", { width: "400", height: "400", fill: "#18181B" }),
191892
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsx)(
191999
191893
  "path",
192000
191894
  {
192001
191895
  d: "M238.088 51.1218L238.089 51.1223L310.605 92.8101C334.028 106.308 348.526 131.32 347.868 157.953L347.867 157.966V157.978V241.688C347.867 268.68 333.687 293.362 310.271 306.856L310.269 306.858L237.754 348.878C214.336 362.374 185.643 362.374 162.225 348.878L89.7127 306.859C66.6206 293.361 52.1113 268.674 52.1113 241.688V157.978C52.1113 131.326 66.6211 106.307 89.7088 92.8093C89.7101 92.8085 89.7114 92.8078 89.7127 92.807L162.556 51.1233L162.559 51.1218C185.977 37.6261 214.67 37.6261 238.088 51.1218ZM124.634 200C124.634 241.576 158.502 275.372 200.156 275.372C242.142 275.372 276.013 241.578 276.013 200C276.013 158.419 241.805 124.628 200.156 124.628C158.502 124.628 124.634 158.424 124.634 200Z",
@@ -192004,8 +191898,8 @@ function AvatarBox({ checked }) {
192004
191898
  strokeWidth: "2"
192005
191899
  }
192006
191900
  ),
192007
- /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)("defs", { children: [
192008
- /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)(
191901
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsxs)("defs", { children: [
191902
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsxs)(
192009
191903
  "linearGradient",
192010
191904
  {
192011
191905
  id: "paint0_linear_11869_12671",
@@ -192015,12 +191909,12 @@ function AvatarBox({ checked }) {
192015
191909
  y2: "360",
192016
191910
  gradientUnits: "userSpaceOnUse",
192017
191911
  children: [
192018
- /* @__PURE__ */ (0, import_jsx_runtime693.jsx)("stop", { stopColor: "white" }),
192019
- /* @__PURE__ */ (0, import_jsx_runtime693.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0.7" })
191912
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsx)("stop", { stopColor: "white" }),
191913
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0.7" })
192020
191914
  ]
192021
191915
  }
192022
191916
  ),
192023
- /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)(
191917
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsxs)(
192024
191918
  "linearGradient",
192025
191919
  {
192026
191920
  id: "paint1_linear_11869_12671",
@@ -192030,8 +191924,8 @@ function AvatarBox({ checked }) {
192030
191924
  y2: "360",
192031
191925
  gradientUnits: "userSpaceOnUse",
192032
191926
  children: [
192033
- /* @__PURE__ */ (0, import_jsx_runtime693.jsx)("stop", { stopColor: "white", stopOpacity: "0" }),
192034
- /* @__PURE__ */ (0, import_jsx_runtime693.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0.7" })
191927
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsx)("stop", { stopColor: "white", stopOpacity: "0" }),
191928
+ /* @__PURE__ */ (0, import_jsx_runtime692.jsx)("stop", { offset: "1", stopColor: "white", stopOpacity: "0.7" })
192035
191929
  ]
192036
191930
  }
192037
191931
  )
@@ -192043,18 +191937,18 @@ function AvatarBox({ checked }) {
192043
191937
  }
192044
191938
  );
192045
191939
  }
192046
- var import_react309, import_jsx_runtime693;
191940
+ var import_react309, import_jsx_runtime692;
192047
191941
  var init_avatar_box = __esm({
192048
191942
  "src/components/common/logo-box/avatar-box.tsx"() {
192049
191943
  "use strict";
192050
191944
  import_react309 = require("motion/react");
192051
191945
  init_icon_avatar2();
192052
- import_jsx_runtime693 = require("react/jsx-runtime");
191946
+ import_jsx_runtime692 = require("react/jsx-runtime");
192053
191947
  }
192054
191948
  });
192055
191949
 
192056
191950
  // src/routes/login/login.tsx
192057
- var import_zod168, import_ui455, import_react_hook_form146, import_react_i18next488, import_react_router_dom249, z64, import_jsx_runtime694, LoginSchema, Login;
191951
+ var import_zod168, import_ui455, import_react_hook_form146, import_react_i18next488, import_react_router_dom248, z64, import_jsx_runtime693, LoginSchema, Login;
192058
191952
  var init_login = __esm({
192059
191953
  "src/routes/login/login.tsx"() {
192060
191954
  "use strict";
@@ -192062,22 +191956,22 @@ var init_login = __esm({
192062
191956
  import_ui455 = require("@medusajs/ui");
192063
191957
  import_react_hook_form146 = require("react-hook-form");
192064
191958
  import_react_i18next488 = require("react-i18next");
192065
- import_react_router_dom249 = require("react-router-dom");
191959
+ import_react_router_dom248 = require("react-router-dom");
192066
191960
  z64 = __toESM(require("zod"));
192067
191961
  init_form2();
192068
191962
  init_avatar_box();
192069
191963
  init_api();
192070
191964
  init_is_fetch_error();
192071
191965
  init_extension_provider2();
192072
- import_jsx_runtime694 = require("react/jsx-runtime");
191966
+ import_jsx_runtime693 = require("react/jsx-runtime");
192073
191967
  LoginSchema = z64.object({
192074
191968
  email: z64.string().email(),
192075
191969
  password: z64.string()
192076
191970
  });
192077
191971
  Login = () => {
192078
191972
  const { t: t5 } = (0, import_react_i18next488.useTranslation)();
192079
- const location = (0, import_react_router_dom249.useLocation)();
192080
- const navigate = (0, import_react_router_dom249.useNavigate)();
191973
+ const location = (0, import_react_router_dom248.useLocation)();
191974
+ const navigate = (0, import_react_router_dom248.useNavigate)();
192081
191975
  const { getWidgets } = useExtension();
192082
191976
  const from = location.state?.from?.pathname || "/orders";
192083
191977
  const form = (0, import_react_hook_form146.useForm)({
@@ -192118,30 +192012,30 @@ var init_login = __esm({
192118
192012
  });
192119
192013
  const serverError = form.formState.errors?.root?.serverError?.message;
192120
192014
  const validationError = form.formState.errors.email?.message || form.formState.errors.password?.message;
192121
- return /* @__PURE__ */ (0, import_jsx_runtime694.jsx)("div", { className: "bg-ui-bg-subtle flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime694.jsxs)("div", { className: "m-4 flex w-full max-w-[280px] flex-col items-center", children: [
192122
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(AvatarBox, {}),
192123
- /* @__PURE__ */ (0, import_jsx_runtime694.jsxs)("div", { className: "mb-4 flex flex-col items-center", children: [
192124
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(import_ui455.Heading, { children: t5("login.title") }),
192125
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(import_ui455.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("login.hint") })
192015
+ return /* @__PURE__ */ (0, import_jsx_runtime693.jsx)("div", { className: "bg-ui-bg-subtle flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)("div", { className: "m-4 flex w-full max-w-[280px] flex-col items-center", children: [
192016
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(AvatarBox, {}),
192017
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)("div", { className: "mb-4 flex flex-col items-center", children: [
192018
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(import_ui455.Heading, { children: t5("login.title") }),
192019
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(import_ui455.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("login.hint") })
192126
192020
  ] }),
192127
- /* @__PURE__ */ (0, import_jsx_runtime694.jsxs)("div", { className: "flex w-full flex-col gap-y-3", children: [
192021
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)("div", { className: "flex w-full flex-col gap-y-3", children: [
192128
192022
  getWidgets("login.before").map((Component5, i) => {
192129
- return /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(Component5, {}, i);
192023
+ return /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(Component5, {}, i);
192130
192024
  }),
192131
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime694.jsxs)(
192025
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)(
192132
192026
  "form",
192133
192027
  {
192134
192028
  onSubmit: handleSubmit,
192135
192029
  className: "flex w-full flex-col gap-y-6",
192136
192030
  children: [
192137
- /* @__PURE__ */ (0, import_jsx_runtime694.jsxs)("div", { className: "flex flex-col gap-y-1", children: [
192138
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192031
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)("div", { className: "flex flex-col gap-y-1", children: [
192032
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
192139
192033
  Form.Field,
192140
192034
  {
192141
192035
  control: form.control,
192142
192036
  name: "email",
192143
192037
  render: ({ field }) => {
192144
- return /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192038
+ return /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
192145
192039
  import_ui455.Input,
192146
192040
  {
192147
192041
  autoComplete: "email",
@@ -192153,15 +192047,15 @@ var init_login = __esm({
192153
192047
  }
192154
192048
  }
192155
192049
  ),
192156
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192050
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
192157
192051
  Form.Field,
192158
192052
  {
192159
192053
  control: form.control,
192160
192054
  name: "password",
192161
192055
  render: ({ field }) => {
192162
- return /* @__PURE__ */ (0, import_jsx_runtime694.jsxs)(Form.Item, { children: [
192163
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(Form.Label, {}),
192164
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192056
+ return /* @__PURE__ */ (0, import_jsx_runtime693.jsxs)(Form.Item, { children: [
192057
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(Form.Label, {}),
192058
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
192165
192059
  import_ui455.Input,
192166
192060
  {
192167
192061
  type: "password",
@@ -192176,8 +192070,8 @@ var init_login = __esm({
192176
192070
  }
192177
192071
  )
192178
192072
  ] }),
192179
- validationError && /* @__PURE__ */ (0, import_jsx_runtime694.jsx)("div", { className: "text-center", children: /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(import_ui455.Hint, { className: "inline-flex", variant: "error", children: validationError }) }),
192180
- serverError && /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192073
+ validationError && /* @__PURE__ */ (0, import_jsx_runtime693.jsx)("div", { className: "text-center", children: /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(import_ui455.Hint, { className: "inline-flex", variant: "error", children: validationError }) }),
192074
+ serverError && /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
192181
192075
  import_ui455.Alert,
192182
192076
  {
192183
192077
  className: "bg-ui-bg-base items-center p-2",
@@ -192186,21 +192080,21 @@ var init_login = __esm({
192186
192080
  children: serverError
192187
192081
  }
192188
192082
  ),
192189
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(import_ui455.Button, { className: "w-full", type: "submit", isLoading: isPending, children: t5("actions.continueWithEmail") })
192083
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(import_ui455.Button, { className: "w-full", type: "submit", isLoading: isPending, children: t5("actions.continueWithEmail") })
192190
192084
  ]
192191
192085
  }
192192
192086
  ) }),
192193
192087
  getWidgets("login.after").map((Component5, i) => {
192194
- return /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(Component5, {}, i);
192088
+ return /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(Component5, {}, i);
192195
192089
  })
192196
192090
  ] }),
192197
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)("span", { className: "text-ui-fg-muted txt-small my-6", children: /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192091
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)("span", { className: "text-ui-fg-muted txt-small my-6", children: /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
192198
192092
  import_react_i18next488.Trans,
192199
192093
  {
192200
192094
  i18nKey: "login.forgotPassword",
192201
192095
  components: [
192202
- /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192203
- import_react_router_dom249.Link,
192096
+ /* @__PURE__ */ (0, import_jsx_runtime693.jsx)(
192097
+ import_react_router_dom248.Link,
192204
192098
  {
192205
192099
  to: "/reset-password",
192206
192100
  className: "text-ui-fg-interactive transition-fg hover:text-ui-fg-interactive-hover focus-visible:text-ui-fg-interactive-hover font-medium outline-none"
@@ -192228,13 +192122,13 @@ var init_login2 = __esm({
192228
192122
  });
192229
192123
 
192230
192124
  // src/components/common/logo-box/logo-box.tsx
192231
- var import_ui456, import_react310, import_jsx_runtime695, LogoBox;
192125
+ var import_ui456, import_react310, import_jsx_runtime694, LogoBox;
192232
192126
  var init_logo_box = __esm({
192233
192127
  "src/components/common/logo-box/logo-box.tsx"() {
192234
192128
  "use strict";
192235
192129
  import_ui456 = require("@medusajs/ui");
192236
192130
  import_react310 = require("motion/react");
192237
- import_jsx_runtime695 = require("react/jsx-runtime");
192131
+ import_jsx_runtime694 = require("react/jsx-runtime");
192238
192132
  LogoBox = ({
192239
192133
  className,
192240
192134
  checked,
@@ -192249,7 +192143,7 @@ var init_logo_box = __esm({
192249
192143
  ease: [0.1, 0.8, 0.2, 1.01]
192250
192144
  }
192251
192145
  }) => {
192252
- return /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)(
192146
+ return /* @__PURE__ */ (0, import_jsx_runtime694.jsxs)(
192253
192147
  "div",
192254
192148
  {
192255
192149
  className: (0, import_ui456.clx)(
@@ -192258,14 +192152,14 @@ var init_logo_box = __esm({
192258
192152
  className
192259
192153
  ),
192260
192154
  children: [
192261
- checked && /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192155
+ checked && /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192262
192156
  import_react310.motion.div,
192263
192157
  {
192264
192158
  className: "size-5 absolute -right-[5px] -top-1 flex items-center justify-center rounded-full border-[0.5px] border-[rgba(3,7,18,0.2)] bg-[#3B82F6] bg-gradient-to-b from-white/0 to-white/20 shadow-[0px_1px_2px_0px_rgba(3,7,18,0.12),0px_1px_2px_0px_rgba(255,255,255,0.10)_inset,0px_-1px_5px_0px_rgba(255,255,255,0.10)_inset,0px_0px_0px_0px_rgba(3,7,18,0.06)_inset]",
192265
192159
  initial: { opacity: 0, scale: 0.5 },
192266
192160
  animate: { opacity: 1, scale: 1 },
192267
192161
  transition: containerTransition,
192268
- children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192162
+ children: /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192269
192163
  "svg",
192270
192164
  {
192271
192165
  xmlns: "http://www.w3.org/2000/svg",
@@ -192273,7 +192167,7 @@ var init_logo_box = __esm({
192273
192167
  height: "20",
192274
192168
  viewBox: "0 0 20 20",
192275
192169
  fill: "none",
192276
- children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192170
+ children: /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192277
192171
  import_react310.motion.path,
192278
192172
  {
192279
192173
  d: "M5.8335 10.4167L9.16683 13.75L14.1668 6.25",
@@ -192290,7 +192184,7 @@ var init_logo_box = __esm({
192290
192184
  )
192291
192185
  }
192292
192186
  ),
192293
- /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192187
+ /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192294
192188
  "svg",
192295
192189
  {
192296
192190
  width: "36",
@@ -192298,7 +192192,7 @@ var init_logo_box = __esm({
192298
192192
  viewBox: "0 0 36 38",
192299
192193
  fill: "none",
192300
192194
  xmlns: "http://www.w3.org/2000/svg",
192301
- children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192195
+ children: /* @__PURE__ */ (0, import_jsx_runtime694.jsx)(
192302
192196
  "path",
192303
192197
  {
192304
192198
  d: "M30.85 6.16832L22.2453 1.21782C19.4299 -0.405941 15.9801 -0.405941 13.1648 1.21782L4.52043 6.16832C1.74473 7.79208 0 10.802 0 14.0099V23.9505C0 27.198 1.74473 30.1683 4.52043 31.7921L13.1251 36.7822C15.9405 38.4059 19.3903 38.4059 22.2056 36.7822L30.8103 31.7921C33.6257 30.1683 35.3307 27.198 35.3307 23.9505V14.0099C35.41 10.802 33.6653 7.79208 30.85 6.16832ZM17.6852 27.8317C12.8079 27.8317 8.8426 23.8713 8.8426 19C8.8426 14.1287 12.8079 10.1683 17.6852 10.1683C22.5625 10.1683 26.5674 14.1287 26.5674 19C26.5674 23.8713 22.6022 27.8317 17.6852 27.8317Z",
@@ -192324,7 +192218,7 @@ var init_logo_box2 = __esm({
192324
192218
  });
192325
192219
 
192326
192220
  // src/routes/reset-password/reset-password.tsx
192327
- var import_zod169, import_ui457, import_react_hook_form147, import_react_i18next489, import_react_router_dom250, z65, import_react311, import_react_jwt, import_jsx_runtime696, ResetPasswordInstructionsSchema, ResetPasswordSchema, ResetPasswordTokenSchema, validateDecodedResetPasswordToken, InvalidResetToken, ChooseNewPassword, ResetPassword;
192221
+ var import_zod169, import_ui457, import_react_hook_form147, import_react_i18next489, import_react_router_dom249, z65, import_react311, import_react_jwt, import_jsx_runtime695, ResetPasswordInstructionsSchema, ResetPasswordSchema, ResetPasswordTokenSchema, validateDecodedResetPasswordToken, InvalidResetToken, ChooseNewPassword, ResetPassword;
192328
192222
  var init_reset_password = __esm({
192329
192223
  "src/routes/reset-password/reset-password.tsx"() {
192330
192224
  "use strict";
@@ -192332,7 +192226,7 @@ var init_reset_password = __esm({
192332
192226
  import_ui457 = require("@medusajs/ui");
192333
192227
  import_react_hook_form147 = require("react-hook-form");
192334
192228
  import_react_i18next489 = require("react-i18next");
192335
- import_react_router_dom250 = require("react-router-dom");
192229
+ import_react_router_dom249 = require("react-router-dom");
192336
192230
  z65 = __toESM(require("zod"));
192337
192231
  import_react311 = require("react");
192338
192232
  import_react_jwt = require("react-jwt");
@@ -192340,7 +192234,7 @@ var init_reset_password = __esm({
192340
192234
  init_logo_box2();
192341
192235
  init_i18n2();
192342
192236
  init_auth();
192343
- import_jsx_runtime696 = require("react/jsx-runtime");
192237
+ import_jsx_runtime695 = require("react/jsx-runtime");
192344
192238
  ResetPasswordInstructionsSchema = z65.object({
192345
192239
  email: z65.string().email()
192346
192240
  });
@@ -192367,14 +192261,14 @@ var init_reset_password = __esm({
192367
192261
  };
192368
192262
  InvalidResetToken = () => {
192369
192263
  const { t: t5 } = (0, import_react_i18next489.useTranslation)();
192370
- const navigate = (0, import_react_router_dom250.useNavigate)();
192371
- return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "bg-ui-bg-base flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "m-4 flex w-full max-w-[300px] flex-col items-center", children: [
192372
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(LogoBox, { className: "mb-4" }),
192373
- /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "mb-6 flex flex-col items-center", children: [
192374
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Heading, { children: t5("resetPassword.invalidLinkTitle") }),
192375
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("resetPassword.invalidLinkHint") })
192264
+ const navigate = (0, import_react_router_dom249.useNavigate)();
192265
+ return /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("div", { className: "bg-ui-bg-base flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "m-4 flex w-full max-w-[300px] flex-col items-center", children: [
192266
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(LogoBox, { className: "mb-4" }),
192267
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "mb-6 flex flex-col items-center", children: [
192268
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Heading, { children: t5("resetPassword.invalidLinkTitle") }),
192269
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("resetPassword.invalidLinkHint") })
192376
192270
  ] }),
192377
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "flex w-full flex-col gap-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192271
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("div", { className: "flex w-full flex-col gap-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192378
192272
  import_ui457.Button,
192379
192273
  {
192380
192274
  onClick: () => navigate("/reset-password", { replace: true }),
@@ -192383,13 +192277,13 @@ var init_reset_password = __esm({
192383
192277
  children: t5("resetPassword.goToResetPassword")
192384
192278
  }
192385
192279
  ) }),
192386
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("span", { className: "txt-small my-6", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192280
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("span", { className: "txt-small my-6", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192387
192281
  import_react_i18next489.Trans,
192388
192282
  {
192389
192283
  i18nKey: "resetPassword.backToLogin",
192390
192284
  components: [
192391
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192392
- import_react_router_dom250.Link,
192285
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192286
+ import_react_router_dom249.Link,
192393
192287
  {
192394
192288
  to: "/login",
192395
192289
  className: "text-ui-fg-interactive transition-fg hover:text-ui-fg-interactive-hover focus-visible:text-ui-fg-interactive-hover outline-none"
@@ -192435,30 +192329,30 @@ var init_reset_password = __esm({
192435
192329
  );
192436
192330
  });
192437
192331
  if (!isValidResetPasswordToken) {
192438
- return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(InvalidResetToken, {});
192332
+ return /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(InvalidResetToken, {});
192439
192333
  }
192440
- return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "bg-ui-bg-subtle flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "m-4 flex w-full max-w-[280px] flex-col items-center", children: [
192441
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(LogoBox, { className: "mb-4" }),
192442
- /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "mb-6 flex flex-col items-center", children: [
192443
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Heading, { children: t5("resetPassword.resetPassword") }),
192444
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("resetPassword.newPasswordHint") })
192334
+ return /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("div", { className: "bg-ui-bg-subtle flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "m-4 flex w-full max-w-[280px] flex-col items-center", children: [
192335
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(LogoBox, { className: "mb-4" }),
192336
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "mb-6 flex flex-col items-center", children: [
192337
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Heading, { children: t5("resetPassword.resetPassword") }),
192338
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("resetPassword.newPasswordHint") })
192445
192339
  ] }),
192446
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "flex w-full flex-col gap-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)(
192340
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("div", { className: "flex w-full flex-col gap-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)(
192447
192341
  "form",
192448
192342
  {
192449
192343
  onSubmit: handleSubmit,
192450
192344
  className: "flex w-full flex-col gap-y-6",
192451
192345
  children: [
192452
- /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex flex-col gap-y-4", children: [
192453
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Input, { type: "email", disabled: true, value: invite?.entity_id }),
192454
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192346
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "flex flex-col gap-y-4", children: [
192347
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Input, { type: "email", disabled: true, value: invite?.entity_id }),
192348
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192455
192349
  Form.Field,
192456
192350
  {
192457
192351
  control: form.control,
192458
192352
  name: "password",
192459
192353
  render: ({ field }) => {
192460
- return /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)(Form.Item, { children: [
192461
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192354
+ return /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)(Form.Item, { children: [
192355
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192462
192356
  import_ui457.Input,
192463
192357
  {
192464
192358
  autoComplete: "new-password",
@@ -192467,19 +192361,19 @@ var init_reset_password = __esm({
192467
192361
  placeholder: t5("resetPassword.newPassword")
192468
192362
  }
192469
192363
  ) }),
192470
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.ErrorMessage, {})
192364
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(Form.ErrorMessage, {})
192471
192365
  ] });
192472
192366
  }
192473
192367
  }
192474
192368
  ),
192475
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192369
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192476
192370
  Form.Field,
192477
192371
  {
192478
192372
  control: form.control,
192479
192373
  name: "repeat_password",
192480
192374
  render: ({ field }) => {
192481
- return /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)(Form.Item, { children: [
192482
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192375
+ return /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)(Form.Item, { children: [
192376
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192483
192377
  import_ui457.Input,
192484
192378
  {
192485
192379
  autoComplete: "off",
@@ -192488,27 +192382,27 @@ var init_reset_password = __esm({
192488
192382
  placeholder: t5("resetPassword.repeatNewPassword")
192489
192383
  }
192490
192384
  ) }),
192491
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.ErrorMessage, {})
192385
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(Form.ErrorMessage, {})
192492
192386
  ] });
192493
192387
  }
192494
192388
  }
192495
192389
  )
192496
192390
  ] }),
192497
- showAlert && /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Alert, { dismissible: true, variant: "success", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex flex-col", children: [
192498
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("span", { className: "text-ui-fg-base mb-1", children: t5("resetPassword.successfulResetTitle") }),
192499
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("span", { children: t5("resetPassword.successfulReset") })
192391
+ showAlert && /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Alert, { dismissible: true, variant: "success", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "flex flex-col", children: [
192392
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("span", { className: "text-ui-fg-base mb-1", children: t5("resetPassword.successfulResetTitle") }),
192393
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("span", { children: t5("resetPassword.successfulReset") })
192500
192394
  ] }) }),
192501
- !showAlert && /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Button, { className: "w-full", type: "submit", isLoading: isPending, children: t5("resetPassword.resetPassword") })
192395
+ !showAlert && /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Button, { className: "w-full", type: "submit", isLoading: isPending, children: t5("resetPassword.resetPassword") })
192502
192396
  ]
192503
192397
  }
192504
192398
  ) }) }),
192505
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("span", { className: "txt-small my-6", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192399
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("span", { className: "txt-small my-6", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192506
192400
  import_react_i18next489.Trans,
192507
192401
  {
192508
192402
  i18nKey: "resetPassword.backToLogin",
192509
192403
  components: [
192510
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192511
- import_react_router_dom250.Link,
192404
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192405
+ import_react_router_dom249.Link,
192512
192406
  {
192513
192407
  to: "/login",
192514
192408
  className: "text-ui-fg-base transition-fg hover:text-ui-fg-base-hover focus-visible:text-ui-fg-base-hover outline-none"
@@ -192522,7 +192416,7 @@ var init_reset_password = __esm({
192522
192416
  };
192523
192417
  ResetPassword = () => {
192524
192418
  const { t: t5 } = (0, import_react_i18next489.useTranslation)();
192525
- const [searchParams] = (0, import_react_router_dom250.useSearchParams)();
192419
+ const [searchParams] = (0, import_react_router_dom249.useSearchParams)();
192526
192420
  const [showAlert, setShowAlert] = (0, import_react311.useState)(false);
192527
192421
  const token = searchParams.get("token");
192528
192422
  const form = (0, import_react_hook_form147.useForm)({
@@ -192549,28 +192443,28 @@ var init_reset_password = __esm({
192549
192443
  );
192550
192444
  });
192551
192445
  if (token) {
192552
- return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(ChooseNewPassword, { token });
192446
+ return /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(ChooseNewPassword, { token });
192553
192447
  }
192554
- return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "bg-ui-bg-base flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "m-4 flex w-full max-w-[300px] flex-col items-center", children: [
192555
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(LogoBox, { className: "mb-4" }),
192556
- /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "mb-4 flex flex-col items-center", children: [
192557
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Heading, { children: t5("resetPassword.resetPassword") }),
192558
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("resetPassword.hint") })
192448
+ return /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("div", { className: "bg-ui-bg-base flex min-h-dvh w-dvw items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "m-4 flex w-full max-w-[300px] flex-col items-center", children: [
192449
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(LogoBox, { className: "mb-4" }),
192450
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "mb-4 flex flex-col items-center", children: [
192451
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Heading, { children: t5("resetPassword.resetPassword") }),
192452
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("resetPassword.hint") })
192559
192453
  ] }),
192560
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "flex w-full flex-col gap-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)(
192454
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("div", { className: "flex w-full flex-col gap-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)(
192561
192455
  "form",
192562
192456
  {
192563
192457
  onSubmit: handleSubmit,
192564
192458
  className: "flex w-full flex-col gap-y-6",
192565
192459
  children: [
192566
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "mt-4 flex flex-col gap-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192460
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("div", { className: "mt-4 flex flex-col gap-y-3", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192567
192461
  Form.Field,
192568
192462
  {
192569
192463
  control: form.control,
192570
192464
  name: "email",
192571
192465
  render: ({ field }) => {
192572
- return /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)(Form.Item, { children: [
192573
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192466
+ return /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)(Form.Item, { children: [
192467
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192574
192468
  import_ui457.Input,
192575
192469
  {
192576
192470
  autoComplete: "email",
@@ -192578,26 +192472,26 @@ var init_reset_password = __esm({
192578
192472
  placeholder: t5("fields.email")
192579
192473
  }
192580
192474
  ) }),
192581
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.ErrorMessage, {})
192475
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(Form.ErrorMessage, {})
192582
192476
  ] });
192583
192477
  }
192584
192478
  }
192585
192479
  ) }),
192586
- showAlert && /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Alert, { dismissible: true, variant: "success", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex flex-col", children: [
192587
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("span", { className: "text-ui-fg-base mb-1", children: t5("resetPassword.successfulRequestTitle") }),
192588
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("span", { children: t5("resetPassword.successfulRequest") })
192480
+ showAlert && /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Alert, { dismissible: true, variant: "success", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsxs)("div", { className: "flex flex-col", children: [
192481
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("span", { className: "text-ui-fg-base mb-1", children: t5("resetPassword.successfulRequestTitle") }),
192482
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("span", { children: t5("resetPassword.successfulRequest") })
192589
192483
  ] }) }),
192590
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui457.Button, { className: "w-full", type: "submit", isLoading: isPending, children: t5("resetPassword.sendResetInstructions") })
192484
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(import_ui457.Button, { className: "w-full", type: "submit", isLoading: isPending, children: t5("resetPassword.sendResetInstructions") })
192591
192485
  ]
192592
192486
  }
192593
192487
  ) }) }),
192594
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("span", { className: "txt-small my-6", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192488
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)("span", { className: "txt-small my-6", children: /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192595
192489
  import_react_i18next489.Trans,
192596
192490
  {
192597
192491
  i18nKey: "resetPassword.backToLogin",
192598
192492
  components: [
192599
- /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192600
- import_react_router_dom250.Link,
192493
+ /* @__PURE__ */ (0, import_jsx_runtime695.jsx)(
192494
+ import_react_router_dom249.Link,
192601
192495
  {
192602
192496
  to: "/login",
192603
192497
  className: "text-ui-fg-base transition-fg hover:text-ui-fg-base-hover focus-visible:text-ui-fg-base-hover outline-none"
@@ -192625,7 +192519,7 @@ var init_reset_password2 = __esm({
192625
192519
  });
192626
192520
 
192627
192521
  // src/routes/invite/invite.tsx
192628
- var import_zod170, import_ui458, import_i18next8, import_react312, import_react313, import_react_hook_form148, import_react_i18next490, import_react_jwt2, import_react_router_dom251, z66, import_jsx_runtime697, CreateAccountSchema, Invite, LoginLink, InvalidView, CreateView, SuccessView, InviteSchema, validateDecodedInvite;
192522
+ var import_zod170, import_ui458, import_i18next8, import_react312, import_react313, import_react_hook_form148, import_react_i18next490, import_react_jwt2, import_react_router_dom250, z66, import_jsx_runtime696, CreateAccountSchema, Invite, LoginLink, InvalidView, CreateView, SuccessView, InviteSchema, validateDecodedInvite;
192629
192523
  var init_invite = __esm({
192630
192524
  "src/routes/invite/invite.tsx"() {
192631
192525
  "use strict";
@@ -192637,14 +192531,14 @@ var init_invite = __esm({
192637
192531
  import_react_hook_form148 = require("react-hook-form");
192638
192532
  import_react_i18next490 = require("react-i18next");
192639
192533
  import_react_jwt2 = require("react-jwt");
192640
- import_react_router_dom251 = require("react-router-dom");
192534
+ import_react_router_dom250 = require("react-router-dom");
192641
192535
  z66 = __toESM(require("zod"));
192642
192536
  init_form2();
192643
192537
  init_avatar_box();
192644
192538
  init_auth();
192645
192539
  init_invites();
192646
192540
  init_is_fetch_error();
192647
- import_jsx_runtime697 = require("react/jsx-runtime");
192541
+ import_jsx_runtime696 = require("react/jsx-runtime");
192648
192542
  CreateAccountSchema = z66.object({
192649
192543
  email: z66.string().email(),
192650
192544
  first_name: z66.string().min(1),
@@ -192661,14 +192555,14 @@ var init_invite = __esm({
192661
192555
  }
192662
192556
  });
192663
192557
  Invite = () => {
192664
- const [searchParams] = (0, import_react_router_dom251.useSearchParams)();
192558
+ const [searchParams] = (0, import_react_router_dom250.useSearchParams)();
192665
192559
  const [success, setSuccess] = (0, import_react313.useState)(false);
192666
192560
  const token = searchParams.get("token");
192667
192561
  const invite = token ? (0, import_react_jwt2.decodeToken)(token) : null;
192668
192562
  const isValidInvite = invite && validateDecodedInvite(invite);
192669
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsx)("div", { className: "bg-ui-bg-subtle relative flex min-h-dvh w-dvw items-center justify-center p-4", children: /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex w-full max-w-[360px] flex-col items-center", children: [
192670
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(AvatarBox, { checked: success }),
192671
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)("div", { className: "max-h-[557px] w-full will-change-contents", children: isValidInvite ? /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_react312.AnimatePresence, { children: !success ? /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192563
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "bg-ui-bg-subtle relative flex min-h-dvh w-dvw items-center justify-center p-4", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex w-full max-w-[360px] flex-col items-center", children: [
192564
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(AvatarBox, { checked: success }),
192565
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "max-h-[557px] w-full will-change-contents", children: isValidInvite ? /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_react312.AnimatePresence, { children: !success ? /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192672
192566
  import_react312.motion.div,
192673
192567
  {
192674
192568
  initial: false,
@@ -192686,7 +192580,7 @@ var init_invite = __esm({
192686
192580
  ease: [0, 0.71, 0.2, 1.01]
192687
192581
  },
192688
192582
  className: "w-full will-change-transform",
192689
- children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192583
+ children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192690
192584
  import_react312.motion.div,
192691
192585
  {
192692
192586
  initial: false,
@@ -192703,7 +192597,7 @@ var init_invite = __esm({
192703
192597
  delay: 0,
192704
192598
  ease: [0, 0.71, 0.2, 1.01]
192705
192599
  },
192706
- children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192600
+ children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192707
192601
  CreateView,
192708
192602
  {
192709
192603
  onSuccess: () => setSuccess(true),
@@ -192716,7 +192610,7 @@ var init_invite = __esm({
192716
192610
  )
192717
192611
  },
192718
192612
  "create-account"
192719
- ) : /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192613
+ ) : /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192720
192614
  import_react312.motion.div,
192721
192615
  {
192722
192616
  initial: {
@@ -192733,18 +192627,18 @@ var init_invite = __esm({
192733
192627
  ease: [0, 0.71, 0.2, 1.01]
192734
192628
  },
192735
192629
  className: "w-full",
192736
- children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(SuccessView, {})
192630
+ children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(SuccessView, {})
192737
192631
  },
192738
192632
  "success-view"
192739
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(InvalidView, {}) })
192633
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(InvalidView, {}) })
192740
192634
  ] }) });
192741
192635
  };
192742
192636
  LoginLink = () => {
192743
192637
  const { t: t5 } = (0, import_react_i18next490.useTranslation)();
192744
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex w-full flex-col items-center", children: [
192745
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)("div", { className: "my-6 h-px w-full border-b border-dotted" }),
192746
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192747
- import_react_router_dom251.Link,
192638
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex w-full flex-col items-center", children: [
192639
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "my-6 h-px w-full border-b border-dotted" }),
192640
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192641
+ import_react_router_dom250.Link,
192748
192642
  {
192749
192643
  to: "/login",
192750
192644
  className: "txt-small text-ui-fg-base transition-fg hover:text-ui-fg-base-hover focus-visible:text-ui-fg-base-hover font-medium outline-none",
@@ -192756,12 +192650,12 @@ var init_invite = __esm({
192756
192650
  };
192757
192651
  InvalidView = () => {
192758
192652
  const { t: t5 } = (0, import_react_i18next490.useTranslation)();
192759
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex flex-col items-center", children: [
192760
- /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex flex-col items-center gap-y-1", children: [
192761
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui458.Heading, { children: t5("invite.invalidTokenTitle") }),
192762
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui458.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("invite.invalidTokenHint") })
192653
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex flex-col items-center", children: [
192654
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex flex-col items-center gap-y-1", children: [
192655
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui458.Heading, { children: t5("invite.invalidTokenTitle") }),
192656
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui458.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("invite.invalidTokenHint") })
192763
192657
  ] }),
192764
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(LoginLink, {})
192658
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(LoginLink, {})
192765
192659
  ] });
192766
192660
  };
192767
192661
  CreateView = ({
@@ -192771,7 +192665,7 @@ var init_invite = __esm({
192771
192665
  }) => {
192772
192666
  const { t: t5 } = (0, import_react_i18next490.useTranslation)();
192773
192667
  const [invalid, setInvalid] = (0, import_react313.useState)(false);
192774
- const [params2] = (0, import_react_router_dom251.useSearchParams)();
192668
+ const [params2] = (0, import_react_router_dom250.useSearchParams)();
192775
192669
  const isFirstRun = params2.get("first_run") === "true";
192776
192670
  const form = (0, import_react_hook_form148.useForm)({
192777
192671
  resolver: (0, import_zod170.zodResolver)(CreateAccountSchema),
@@ -192819,20 +192713,20 @@ var init_invite = __esm({
192819
192713
  });
192820
192714
  const serverError = form.formState.errors.root?.message;
192821
192715
  const validationError = form.formState.errors.email?.message || form.formState.errors.password?.message || form.formState.errors.repeat_password?.message || form.formState.errors.first_name?.message || form.formState.errors.last_name?.message;
192822
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex w-full flex-col items-center", children: [
192823
- /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "mb-4 flex flex-col items-center", children: [
192824
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui458.Heading, { children: t5("invite.title") }),
192825
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui458.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("invite.hint") })
192716
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex w-full flex-col items-center", children: [
192717
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "mb-4 flex flex-col items-center", children: [
192718
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui458.Heading, { children: t5("invite.title") }),
192719
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui458.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("invite.hint") })
192826
192720
  ] }),
192827
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("form", { onSubmit: handleSubmit, className: "flex w-full flex-col gap-y-6", children: [
192828
- /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex flex-col gap-y-2", children: [
192829
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192721
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form, { ...form, children: /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("form", { onSubmit: handleSubmit, className: "flex w-full flex-col gap-y-6", children: [
192722
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex flex-col gap-y-2", children: [
192723
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192830
192724
  Form.Field,
192831
192725
  {
192832
192726
  control: form.control,
192833
192727
  name: "email",
192834
192728
  render: ({ field }) => {
192835
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192729
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192836
192730
  import_ui458.Input,
192837
192731
  {
192838
192732
  autoComplete: "off",
@@ -192844,13 +192738,13 @@ var init_invite = __esm({
192844
192738
  }
192845
192739
  }
192846
192740
  ),
192847
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192741
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192848
192742
  Form.Field,
192849
192743
  {
192850
192744
  control: form.control,
192851
192745
  name: "first_name",
192852
192746
  render: ({ field }) => {
192853
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192747
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192854
192748
  import_ui458.Input,
192855
192749
  {
192856
192750
  autoComplete: "given-name",
@@ -192862,13 +192756,13 @@ var init_invite = __esm({
192862
192756
  }
192863
192757
  }
192864
192758
  ),
192865
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192759
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192866
192760
  Form.Field,
192867
192761
  {
192868
192762
  control: form.control,
192869
192763
  name: "last_name",
192870
192764
  render: ({ field }) => {
192871
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192765
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192872
192766
  import_ui458.Input,
192873
192767
  {
192874
192768
  autoComplete: "family-name",
@@ -192880,13 +192774,13 @@ var init_invite = __esm({
192880
192774
  }
192881
192775
  }
192882
192776
  ),
192883
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192777
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192884
192778
  Form.Field,
192885
192779
  {
192886
192780
  control: form.control,
192887
192781
  name: "password",
192888
192782
  render: ({ field }) => {
192889
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192783
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192890
192784
  import_ui458.Input,
192891
192785
  {
192892
192786
  autoComplete: "new-password",
@@ -192899,13 +192793,13 @@ var init_invite = __esm({
192899
192793
  }
192900
192794
  }
192901
192795
  ),
192902
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192796
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192903
192797
  Form.Field,
192904
192798
  {
192905
192799
  control: form.control,
192906
192800
  name: "repeat_password",
192907
192801
  render: ({ field }) => {
192908
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192802
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192909
192803
  import_ui458.Input,
192910
192804
  {
192911
192805
  autoComplete: "off",
@@ -192918,8 +192812,8 @@ var init_invite = __esm({
192918
192812
  }
192919
192813
  }
192920
192814
  ),
192921
- validationError && /* @__PURE__ */ (0, import_jsx_runtime697.jsx)("div", { className: "mt-6 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui458.Hint, { className: "inline-flex", variant: "error", children: validationError }) }),
192922
- serverError && /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192815
+ validationError && /* @__PURE__ */ (0, import_jsx_runtime696.jsx)("div", { className: "mt-6 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui458.Hint, { className: "inline-flex", variant: "error", children: validationError }) }),
192816
+ serverError && /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192923
192817
  import_ui458.Alert,
192924
192818
  {
192925
192819
  className: "bg-ui-bg-base items-center p-2",
@@ -192929,7 +192823,7 @@ var init_invite = __esm({
192929
192823
  }
192930
192824
  )
192931
192825
  ] }),
192932
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192826
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192933
192827
  import_ui458.Button,
192934
192828
  {
192935
192829
  className: "w-full",
@@ -192940,19 +192834,19 @@ var init_invite = __esm({
192940
192834
  }
192941
192835
  )
192942
192836
  ] }) }),
192943
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(LoginLink, {})
192837
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(LoginLink, {})
192944
192838
  ] });
192945
192839
  };
192946
192840
  SuccessView = () => {
192947
192841
  const { t: t5 } = (0, import_react_i18next490.useTranslation)();
192948
- return /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex w-full flex-col items-center gap-y-6", children: [
192949
- /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex flex-col items-center gap-y-1", children: [
192950
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui458.Heading, { className: "text-center", children: t5("invite.successTitle") }),
192951
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui458.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("invite.successHint") })
192842
+ return /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex w-full flex-col items-center gap-y-6", children: [
192843
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsxs)("div", { className: "flex flex-col items-center gap-y-1", children: [
192844
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui458.Heading, { className: "text-center", children: t5("invite.successTitle") }),
192845
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui458.Text, { size: "small", className: "text-ui-fg-subtle text-center", children: t5("invite.successHint") })
192952
192846
  ] }),
192953
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui458.Button, { variant: "secondary", asChild: true, className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_react_router_dom251.Link, { to: "/login", replace: true, children: t5("invite.successAction") }) }),
192954
- /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
192955
- import_react_router_dom251.Link,
192847
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_ui458.Button, { variant: "secondary", asChild: true, className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(import_react_router_dom250.Link, { to: "/login", replace: true, children: t5("invite.successAction") }) }),
192848
+ /* @__PURE__ */ (0, import_jsx_runtime696.jsx)(
192849
+ import_react_router_dom250.Link,
192956
192850
  {
192957
192851
  to: "/login",
192958
192852
  className: "txt-small text-ui-fg-base transition-fg hover:text-ui-fg-base-hover focus-visible:text-ui-fg-base-hover font-medium outline-none",
@@ -192987,25 +192881,25 @@ var init_invite2 = __esm({
192987
192881
  });
192988
192882
 
192989
192883
  // src/routes/no-match/no-match.tsx
192990
- var import_icons175, import_ui459, import_react_i18next491, import_react_router_dom252, import_jsx_runtime698, NoMatch;
192884
+ var import_icons175, import_ui459, import_react_i18next491, import_react_router_dom251, import_jsx_runtime697, NoMatch;
192991
192885
  var init_no_match = __esm({
192992
192886
  "src/routes/no-match/no-match.tsx"() {
192993
192887
  "use strict";
192994
192888
  import_icons175 = require("@medusajs/icons");
192995
192889
  import_ui459 = require("@medusajs/ui");
192996
192890
  import_react_i18next491 = require("react-i18next");
192997
- import_react_router_dom252 = require("react-router-dom");
192998
- import_jsx_runtime698 = require("react/jsx-runtime");
192891
+ import_react_router_dom251 = require("react-router-dom");
192892
+ import_jsx_runtime697 = require("react/jsx-runtime");
192999
192893
  NoMatch = () => {
193000
192894
  const { t: t5 } = (0, import_react_i18next491.useTranslation)();
193001
192895
  const title = t5("errorBoundary.notFoundTitle");
193002
192896
  const message = t5("errorBoundary.noMatchMessage");
193003
- return /* @__PURE__ */ (0, import_jsx_runtime698.jsx)("div", { className: "flex size-full min-h-screen items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime698.jsxs)("div", { className: "flex flex-col items-center gap-y-6", children: [
193004
- /* @__PURE__ */ (0, import_jsx_runtime698.jsxs)("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
193005
- /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_icons175.ExclamationCircle, {}),
193006
- /* @__PURE__ */ (0, import_jsx_runtime698.jsxs)("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
193007
- /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_ui459.Text, { size: "small", leading: "compact", weight: "plus", children: title }),
193008
- /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(
192897
+ return /* @__PURE__ */ (0, import_jsx_runtime697.jsx)("div", { className: "flex size-full min-h-screen items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex flex-col items-center gap-y-6", children: [
192898
+ /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
192899
+ /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_icons175.ExclamationCircle, {}),
192900
+ /* @__PURE__ */ (0, import_jsx_runtime697.jsxs)("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
192901
+ /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui459.Text, { size: "small", leading: "compact", weight: "plus", children: title }),
192902
+ /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(
193009
192903
  import_ui459.Text,
193010
192904
  {
193011
192905
  size: "small",
@@ -193015,7 +192909,7 @@ var init_no_match = __esm({
193015
192909
  )
193016
192910
  ] })
193017
192911
  ] }),
193018
- /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_ui459.Button, { asChild: true, size: "small", variant: "secondary", children: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Link, { to: "/", children: t5("errorBoundary.backToDashboard") }) })
192912
+ /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_ui459.Button, { asChild: true, size: "small", variant: "secondary", children: /* @__PURE__ */ (0, import_jsx_runtime697.jsx)(import_react_router_dom251.Link, { to: "/", children: t5("errorBoundary.backToDashboard") }) })
193019
192913
  ] }) });
193020
192914
  };
193021
192915
  }
@@ -193040,20 +192934,20 @@ function getRouteMap({
193040
192934
  }) {
193041
192935
  return [
193042
192936
  {
193043
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ProtectedRoute, {}),
193044
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
192937
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ProtectedRoute, {}),
192938
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193045
192939
  children: [
193046
192940
  {
193047
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(MainLayout, {}),
192941
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(MainLayout, {}),
193048
192942
  children: [
193049
192943
  {
193050
192944
  path: "/",
193051
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
192945
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193052
192946
  lazy: () => Promise.resolve().then(() => (init_home2(), home_exports))
193053
192947
  },
193054
192948
  {
193055
192949
  path: "/products",
193056
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
192950
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193057
192951
  handle: {
193058
192952
  breadcrumb: () => (0, import_i18next9.t)("products.domain")
193059
192953
  },
@@ -193078,14 +192972,14 @@ function getRouteMap({
193078
192972
  },
193079
192973
  {
193080
192974
  path: ":id",
193081
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
192975
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193082
192976
  lazy: async () => {
193083
192977
  const { Breadcrumb, loader } = await Promise.resolve().then(() => (init_product_detail2(), product_detail_exports));
193084
192978
  return {
193085
- Component: import_react_router_dom253.Outlet,
192979
+ Component: import_react_router_dom252.Outlet,
193086
192980
  loader,
193087
192981
  handle: {
193088
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
192982
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193089
192983
  }
193090
192984
  };
193091
192985
  },
@@ -193160,7 +193054,7 @@ function getRouteMap({
193160
193054
  Component: Component5,
193161
193055
  loader,
193162
193056
  handle: {
193163
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193057
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193164
193058
  }
193165
193059
  };
193166
193060
  },
@@ -193193,7 +193087,7 @@ function getRouteMap({
193193
193087
  },
193194
193088
  {
193195
193089
  path: "/categories",
193196
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193090
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193197
193091
  handle: {
193198
193092
  breadcrumb: () => (0, import_i18next9.t)("categories.domain")
193199
193093
  },
@@ -193220,7 +193114,7 @@ function getRouteMap({
193220
193114
  Component: Component5,
193221
193115
  loader,
193222
193116
  handle: {
193223
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193117
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193224
193118
  }
193225
193119
  };
193226
193120
  },
@@ -193247,7 +193141,7 @@ function getRouteMap({
193247
193141
  },
193248
193142
  {
193249
193143
  path: "/orders",
193250
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193144
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193251
193145
  handle: {
193252
193146
  breadcrumb: () => (0, import_i18next9.t)("orders.domain")
193253
193147
  },
@@ -193270,7 +193164,7 @@ function getRouteMap({
193270
193164
  Component: Component5,
193271
193165
  loader,
193272
193166
  handle: {
193273
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193167
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193274
193168
  }
193275
193169
  };
193276
193170
  },
@@ -193337,7 +193231,7 @@ function getRouteMap({
193337
193231
  },
193338
193232
  {
193339
193233
  path: "/promotions",
193340
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193234
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193341
193235
  handle: {
193342
193236
  breadcrumb: () => (0, import_i18next9.t)("promotions.domain")
193343
193237
  },
@@ -193358,7 +193252,7 @@ function getRouteMap({
193358
193252
  Component: Component5,
193359
193253
  loader,
193360
193254
  handle: {
193361
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193255
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193362
193256
  }
193363
193257
  };
193364
193258
  },
@@ -193381,7 +193275,7 @@ function getRouteMap({
193381
193275
  },
193382
193276
  {
193383
193277
  path: "/campaigns",
193384
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193278
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193385
193279
  handle: {
193386
193280
  breadcrumb: () => (0, import_i18next9.t)("campaigns.domain")
193387
193281
  },
@@ -193403,7 +193297,7 @@ function getRouteMap({
193403
193297
  Component: Component5,
193404
193298
  loader,
193405
193299
  handle: {
193406
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193300
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193407
193301
  }
193408
193302
  };
193409
193303
  },
@@ -193430,7 +193324,7 @@ function getRouteMap({
193430
193324
  },
193431
193325
  {
193432
193326
  path: "/collections",
193433
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193327
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193434
193328
  handle: {
193435
193329
  breadcrumb: () => (0, import_i18next9.t)("collections.domain")
193436
193330
  },
@@ -193453,7 +193347,7 @@ function getRouteMap({
193453
193347
  Component: Component5,
193454
193348
  loader,
193455
193349
  handle: {
193456
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193350
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193457
193351
  }
193458
193352
  };
193459
193353
  },
@@ -193476,7 +193370,7 @@ function getRouteMap({
193476
193370
  },
193477
193371
  {
193478
193372
  path: "/price-lists",
193479
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193373
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193480
193374
  handle: {
193481
193375
  breadcrumb: () => (0, import_i18next9.t)("priceLists.domain")
193482
193376
  },
@@ -193499,7 +193393,7 @@ function getRouteMap({
193499
193393
  Component: Component5,
193500
193394
  loader,
193501
193395
  handle: {
193502
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193396
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193503
193397
  }
193504
193398
  };
193505
193399
  },
@@ -193526,7 +193420,7 @@ function getRouteMap({
193526
193420
  },
193527
193421
  {
193528
193422
  path: "/customers",
193529
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193423
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193530
193424
  handle: {
193531
193425
  breadcrumb: () => (0, import_i18next9.t)("customers.domain")
193532
193426
  },
@@ -193549,7 +193443,7 @@ function getRouteMap({
193549
193443
  Component: Component5,
193550
193444
  loader,
193551
193445
  handle: {
193552
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193446
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193553
193447
  }
193554
193448
  };
193555
193449
  },
@@ -193580,7 +193474,7 @@ function getRouteMap({
193580
193474
  },
193581
193475
  {
193582
193476
  path: "/customer-groups",
193583
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193477
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193584
193478
  handle: {
193585
193479
  breadcrumb: () => (0, import_i18next9.t)("customerGroups.domain")
193586
193480
  },
@@ -193603,7 +193497,7 @@ function getRouteMap({
193603
193497
  Component: Component5,
193604
193498
  loader,
193605
193499
  handle: {
193606
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193500
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193607
193501
  }
193608
193502
  };
193609
193503
  },
@@ -193626,7 +193520,7 @@ function getRouteMap({
193626
193520
  },
193627
193521
  {
193628
193522
  path: "/reservations",
193629
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193523
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193630
193524
  handle: {
193631
193525
  breadcrumb: () => (0, import_i18next9.t)("reservations.domain")
193632
193526
  },
@@ -193649,7 +193543,7 @@ function getRouteMap({
193649
193543
  Component: Component5,
193650
193544
  loader,
193651
193545
  handle: {
193652
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193546
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193653
193547
  }
193654
193548
  };
193655
193549
  },
@@ -193668,7 +193562,7 @@ function getRouteMap({
193668
193562
  },
193669
193563
  {
193670
193564
  path: "/inventory",
193671
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193565
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193672
193566
  handle: {
193673
193567
  breadcrumb: () => (0, import_i18next9.t)("inventory.domain")
193674
193568
  },
@@ -193695,7 +193589,7 @@ function getRouteMap({
193695
193589
  Component: Component5,
193696
193590
  loader,
193697
193591
  handle: {
193698
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193592
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193699
193593
  }
193700
193594
  };
193701
193595
  },
@@ -193730,24 +193624,24 @@ function getRouteMap({
193730
193624
  ]
193731
193625
  },
193732
193626
  {
193733
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ProtectedRoute, {}),
193734
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193627
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ProtectedRoute, {}),
193628
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193735
193629
  children: [
193736
193630
  {
193737
193631
  path: "/settings",
193738
193632
  handle: {
193739
193633
  breadcrumb: () => (0, import_i18next9.t)("app.nav.settings.header")
193740
193634
  },
193741
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(SettingsLayout, {}),
193635
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(SettingsLayout, {}),
193742
193636
  children: [
193743
193637
  {
193744
193638
  index: true,
193745
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193639
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193746
193640
  lazy: () => Promise.resolve().then(() => (init_settings2(), settings_exports))
193747
193641
  },
193748
193642
  {
193749
193643
  path: "profile",
193750
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193644
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193751
193645
  lazy: () => Promise.resolve().then(() => (init_profile_detail2(), profile_detail_exports)),
193752
193646
  handle: {
193753
193647
  breadcrumb: () => (0, import_i18next9.t)("profile.domain")
@@ -193761,8 +193655,8 @@ function getRouteMap({
193761
193655
  },
193762
193656
  {
193763
193657
  path: "regions",
193764
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193765
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
193658
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193659
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
193766
193660
  handle: {
193767
193661
  breadcrumb: () => (0, import_i18next9.t)("regions.domain")
193768
193662
  },
@@ -193785,7 +193679,7 @@ function getRouteMap({
193785
193679
  Component: Component5,
193786
193680
  loader,
193787
193681
  handle: {
193788
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193682
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193789
193683
  }
193790
193684
  };
193791
193685
  },
@@ -193808,7 +193702,7 @@ function getRouteMap({
193808
193702
  },
193809
193703
  {
193810
193704
  path: "store",
193811
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193705
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193812
193706
  lazy: () => Promise.resolve().then(() => (init_store_detail2(), store_detail_exports)),
193813
193707
  handle: {
193814
193708
  breadcrumb: () => (0, import_i18next9.t)("store.domain")
@@ -193834,8 +193728,8 @@ function getRouteMap({
193834
193728
  },
193835
193729
  {
193836
193730
  path: "users",
193837
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193838
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
193731
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193732
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
193839
193733
  handle: {
193840
193734
  breadcrumb: () => (0, import_i18next9.t)("users.domain")
193841
193735
  },
@@ -193858,7 +193752,7 @@ function getRouteMap({
193858
193752
  Component: Component5,
193859
193753
  loader,
193860
193754
  handle: {
193861
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193755
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193862
193756
  }
193863
193757
  };
193864
193758
  },
@@ -193877,8 +193771,8 @@ function getRouteMap({
193877
193771
  },
193878
193772
  {
193879
193773
  path: "sales-channels",
193880
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193881
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
193774
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193775
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
193882
193776
  handle: {
193883
193777
  breadcrumb: () => (0, import_i18next9.t)("salesChannels.domain")
193884
193778
  },
@@ -193901,7 +193795,7 @@ function getRouteMap({
193901
193795
  Component: Component5,
193902
193796
  loader,
193903
193797
  handle: {
193904
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193798
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193905
193799
  }
193906
193800
  };
193907
193801
  },
@@ -193924,8 +193818,8 @@ function getRouteMap({
193924
193818
  },
193925
193819
  {
193926
193820
  path: "locations",
193927
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193928
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
193821
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193822
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
193929
193823
  handle: {
193930
193824
  breadcrumb: () => (0, import_i18next9.t)("locations.domain")
193931
193825
  },
@@ -193940,7 +193834,7 @@ function getRouteMap({
193940
193834
  },
193941
193835
  {
193942
193836
  path: "shipping-profiles",
193943
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
193837
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
193944
193838
  handle: {
193945
193839
  breadcrumb: () => (0, import_i18next9.t)("shippingProfile.domain")
193946
193840
  },
@@ -193963,7 +193857,7 @@ function getRouteMap({
193963
193857
  Component: Component5,
193964
193858
  loader,
193965
193859
  handle: {
193966
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193860
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
193967
193861
  }
193968
193862
  };
193969
193863
  },
@@ -193978,8 +193872,8 @@ function getRouteMap({
193978
193872
  },
193979
193873
  {
193980
193874
  path: "shipping-option-types",
193981
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
193982
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
193875
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193876
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
193983
193877
  handle: {
193984
193878
  breadcrumb: () => (0, import_i18next9.t)("shippingOptionTypes.domain")
193985
193879
  },
@@ -194002,7 +193896,7 @@ function getRouteMap({
194002
193896
  Component: Component5,
194003
193897
  loader,
194004
193898
  handle: {
194005
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193899
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
194006
193900
  }
194007
193901
  };
194008
193902
  },
@@ -194023,7 +193917,7 @@ function getRouteMap({
194023
193917
  Component: Component5,
194024
193918
  loader,
194025
193919
  handle: {
194026
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
193920
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
194027
193921
  }
194028
193922
  };
194029
193923
  },
@@ -194090,8 +193984,8 @@ function getRouteMap({
194090
193984
  },
194091
193985
  {
194092
193986
  path: "product-tags",
194093
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
194094
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
193987
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
193988
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194095
193989
  handle: {
194096
193990
  breadcrumb: () => (0, import_i18next9.t)("productTags.domain")
194097
193991
  },
@@ -194114,7 +194008,7 @@ function getRouteMap({
194114
194008
  Component: Component5,
194115
194009
  loader,
194116
194010
  handle: {
194117
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
194011
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
194118
194012
  }
194119
194013
  };
194120
194014
  },
@@ -194133,8 +194027,8 @@ function getRouteMap({
194133
194027
  },
194134
194028
  {
194135
194029
  path: "workflows",
194136
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
194137
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194030
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
194031
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194138
194032
  handle: {
194139
194033
  breadcrumb: () => (0, import_i18next9.t)("workflowExecutions.domain")
194140
194034
  },
@@ -194151,7 +194045,7 @@ function getRouteMap({
194151
194045
  Component: Component5,
194152
194046
  loader,
194153
194047
  handle: {
194154
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
194048
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
194155
194049
  }
194156
194050
  };
194157
194051
  }
@@ -194160,8 +194054,8 @@ function getRouteMap({
194160
194054
  },
194161
194055
  {
194162
194056
  path: "product-types",
194163
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
194164
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194057
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
194058
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194165
194059
  handle: {
194166
194060
  breadcrumb: () => (0, import_i18next9.t)("productTypes.domain")
194167
194061
  },
@@ -194184,7 +194078,7 @@ function getRouteMap({
194184
194078
  Component: Component5,
194185
194079
  loader,
194186
194080
  handle: {
194187
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
194081
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
194188
194082
  }
194189
194083
  };
194190
194084
  },
@@ -194203,14 +194097,14 @@ function getRouteMap({
194203
194097
  },
194204
194098
  {
194205
194099
  path: "publishable-api-keys",
194206
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194100
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194207
194101
  handle: {
194208
194102
  breadcrumb: () => (0, import_i18next9.t)("apiKeyManagement.domain.publishable")
194209
194103
  },
194210
194104
  children: [
194211
194105
  {
194212
194106
  path: "",
194213
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194107
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194214
194108
  children: [
194215
194109
  {
194216
194110
  path: "",
@@ -194232,7 +194126,7 @@ function getRouteMap({
194232
194126
  Component: Component5,
194233
194127
  loader,
194234
194128
  handle: {
194235
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
194129
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
194236
194130
  }
194237
194131
  };
194238
194132
  },
@@ -194251,14 +194145,14 @@ function getRouteMap({
194251
194145
  },
194252
194146
  {
194253
194147
  path: "secret-api-keys",
194254
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194148
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194255
194149
  handle: {
194256
194150
  breadcrumb: () => (0, import_i18next9.t)("apiKeyManagement.domain.secret")
194257
194151
  },
194258
194152
  children: [
194259
194153
  {
194260
194154
  path: "",
194261
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194155
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194262
194156
  children: [
194263
194157
  {
194264
194158
  path: "",
@@ -194280,7 +194174,7 @@ function getRouteMap({
194280
194174
  Component: Component5,
194281
194175
  loader,
194282
194176
  handle: {
194283
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
194177
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
194284
194178
  }
194285
194179
  };
194286
194180
  },
@@ -194295,7 +194189,7 @@ function getRouteMap({
194295
194189
  },
194296
194190
  {
194297
194191
  path: "tax-regions",
194298
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194192
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194299
194193
  handle: {
194300
194194
  breadcrumb: () => (0, import_i18next9.t)("taxRegions.domain")
194301
194195
  },
@@ -194312,10 +194206,10 @@ function getRouteMap({
194312
194206
  },
194313
194207
  {
194314
194208
  path: ":id",
194315
- Component: import_react_router_dom253.Outlet,
194209
+ Component: import_react_router_dom252.Outlet,
194316
194210
  loader: taxRegionLoader,
194317
194211
  handle: {
194318
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(TaxRegionDetailBreadcrumb, { ...match })
194212
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(TaxRegionDetailBreadcrumb, { ...match })
194319
194213
  },
194320
194214
  children: [
194321
194215
  {
@@ -194361,7 +194255,7 @@ function getRouteMap({
194361
194255
  Component: Component5,
194362
194256
  loader,
194363
194257
  handle: {
194364
- breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Breadcrumb, { ...match })
194258
+ breadcrumb: (match) => /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(Breadcrumb, { ...match })
194365
194259
  }
194366
194260
  };
194367
194261
  },
@@ -194390,7 +194284,7 @@ function getRouteMap({
194390
194284
  },
194391
194285
  {
194392
194286
  path: "return-reasons",
194393
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194287
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194394
194288
  handle: {
194395
194289
  breadcrumb: () => (0, import_i18next9.t)("returnReasons.domain")
194396
194290
  },
@@ -194418,7 +194312,7 @@ function getRouteMap({
194418
194312
  },
194419
194313
  {
194420
194314
  path: "refund-reasons",
194421
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.Outlet, {}),
194315
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(import_react_router_dom252.Outlet, {}),
194422
194316
  handle: {
194423
194317
  breadcrumb: () => (0, import_i18next9.t)("refundReasons.domain")
194424
194318
  },
@@ -194446,7 +194340,7 @@ function getRouteMap({
194446
194340
  },
194447
194341
  {
194448
194342
  path: "translations",
194449
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
194343
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
194450
194344
  handle: {
194451
194345
  breadcrumb: () => (0, import_i18next9.t)("translations.domain")
194452
194346
  },
@@ -194458,10 +194352,6 @@ function getRouteMap({
194458
194352
  {
194459
194353
  path: "edit",
194460
194354
  lazy: () => Promise.resolve().then(() => (init_translations_edit2(), translations_edit_exports))
194461
- },
194462
- {
194463
- path: "add-locales",
194464
- lazy: () => Promise.resolve().then(() => (init_add_locales2(), add_locales_exports))
194465
194355
  }
194466
194356
  ]
194467
194357
  },
@@ -194471,10 +194361,10 @@ function getRouteMap({
194471
194361
  ]
194472
194362
  },
194473
194363
  {
194474
- element: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(PublicLayout, {}),
194364
+ element: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(PublicLayout, {}),
194475
194365
  children: [
194476
194366
  {
194477
- errorElement: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(ErrorBoundary, {}),
194367
+ errorElement: /* @__PURE__ */ (0, import_jsx_runtime698.jsx)(ErrorBoundary, {}),
194478
194368
  children: [
194479
194369
  {
194480
194370
  path: "/login",
@@ -194498,12 +194388,12 @@ function getRouteMap({
194498
194388
  }
194499
194389
  ];
194500
194390
  }
194501
- var import_i18next9, import_react_router_dom253, import_jsx_runtime699;
194391
+ var import_i18next9, import_react_router_dom252, import_jsx_runtime698;
194502
194392
  var init_get_route_map = __esm({
194503
194393
  "src/dashboard-app/routes/get-route.map.tsx"() {
194504
194394
  "use strict";
194505
194395
  import_i18next9 = require("i18next");
194506
- import_react_router_dom253 = require("react-router-dom");
194396
+ import_react_router_dom252 = require("react-router-dom");
194507
194397
  init_protected_route2();
194508
194398
  init_main_layout2();
194509
194399
  init_public_layout2();
@@ -194511,7 +194401,7 @@ var init_get_route_map = __esm({
194511
194401
  init_error_boundary2();
194512
194402
  init_breadcrumb();
194513
194403
  init_loader();
194514
- import_jsx_runtime699 = require("react/jsx-runtime");
194404
+ import_jsx_runtime698 = require("react/jsx-runtime");
194515
194405
  }
194516
194406
  });
194517
194407
 
@@ -194675,18 +194565,18 @@ var init_sort_menu_items_by_rank = __esm({
194675
194565
  });
194676
194566
 
194677
194567
  // src/dashboard-app/dashboard-app.tsx
194678
- var import_admin_shared, import_react_router_dom254, import_jsx_runtime700, OPTIONAL_LAST_SEGMENT_MATCH, DashboardApp;
194568
+ var import_admin_shared, import_react_router_dom253, import_jsx_runtime699, OPTIONAL_LAST_SEGMENT_MATCH, DashboardApp;
194679
194569
  var init_dashboard_app = __esm({
194680
194570
  "src/dashboard-app/dashboard-app.tsx"() {
194681
194571
  "use strict";
194682
194572
  import_admin_shared = require("@medusajs/admin-shared");
194683
- import_react_router_dom254 = require("react-router-dom");
194573
+ import_react_router_dom253 = require("react-router-dom");
194684
194574
  init_providers2();
194685
194575
  init_translations();
194686
194576
  init_get_route_map();
194687
194577
  init_utils14();
194688
194578
  init_sort_menu_items_by_rank();
194689
- import_jsx_runtime700 = require("react/jsx-runtime");
194579
+ import_jsx_runtime699 = require("react/jsx-runtime");
194690
194580
  OPTIONAL_LAST_SEGMENT_MATCH = /\/([^\/])+\?$/;
194691
194581
  DashboardApp = class {
194692
194582
  constructor({ plugins }) {
@@ -194792,7 +194682,7 @@ var init_dashboard_app = __esm({
194792
194682
  const navItem = {
194793
194683
  label: item.label,
194794
194684
  to: item.path,
194795
- icon: item.icon ? /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(item.icon, {}) : void 0,
194685
+ icon: item.icon ? /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(item.icon, {}) : void 0,
194796
194686
  items: [],
194797
194687
  nested: item.nested,
194798
194688
  rank: item.rank,
@@ -194999,10 +194889,10 @@ var init_dashboard_app = __esm({
194999
194889
  settingsRoutes: this.settingsRoutes,
195000
194890
  coreRoutes: this.coreRoutes
195001
194891
  });
195002
- const router = (0, import_react_router_dom254.createBrowserRouter)(routes, {
194892
+ const router = (0, import_react_router_dom253.createBrowserRouter)(routes, {
195003
194893
  basename: __BASE__ || "/"
195004
194894
  });
195005
- return /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(Providers, { api: this.api, children: /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(import_react_router_dom254.RouterProvider, { router }) });
194895
+ return /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(Providers, { api: this.api, children: /* @__PURE__ */ (0, import_jsx_runtime699.jsx)(import_react_router_dom253.RouterProvider, { router }) });
195006
194896
  }
195007
194897
  };
195008
194898
  }
@@ -195048,7 +194938,7 @@ function getFieldLabel(field) {
195048
194938
  }
195049
194939
  return field.name.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
195050
194940
  }
195051
- var import_ui460, import_react_i18next492, import_jsx_runtime701, FormExtensionZone, FormExtensionField, FormExtensionFieldComponent;
194941
+ var import_ui460, import_react_i18next492, import_jsx_runtime700, FormExtensionZone, FormExtensionField, FormExtensionFieldComponent;
195052
194942
  var init_form_extension_zone = __esm({
195053
194943
  "src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx"() {
195054
194944
  "use strict";
@@ -195056,9 +194946,9 @@ var init_form_extension_zone = __esm({
195056
194946
  import_react_i18next492 = require("react-i18next");
195057
194947
  init_form2();
195058
194948
  init_utils15();
195059
- import_jsx_runtime701 = require("react/jsx-runtime");
194949
+ import_jsx_runtime700 = require("react/jsx-runtime");
195060
194950
  FormExtensionZone = ({ fields, form }) => {
195061
- return /* @__PURE__ */ (0, import_jsx_runtime701.jsx)("div", { children: fields.map((field, index) => /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(FormExtensionField, { field, form }, index)) });
194951
+ return /* @__PURE__ */ (0, import_jsx_runtime700.jsx)("div", { children: fields.map((field, index) => /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(FormExtensionField, { field, form }, index)) });
195062
194952
  };
195063
194953
  FormExtensionField = ({ field, form }) => {
195064
194954
  const label = getFieldLabel(field);
@@ -195067,16 +194957,16 @@ var init_form_extension_zone = __esm({
195067
194957
  const Component5 = field.Component;
195068
194958
  const type = getFieldType(field.validation);
195069
194959
  const { control } = form;
195070
- return /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(
194960
+ return /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(
195071
194961
  Form.Field,
195072
194962
  {
195073
194963
  control,
195074
194964
  name: `additional_data.${field.name}`,
195075
194965
  render: ({ field: field2 }) => {
195076
- return /* @__PURE__ */ (0, import_jsx_runtime701.jsxs)(Form.Item, { children: [
195077
- /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(Form.Label, { children: label }),
195078
- description && /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(Form.Hint, { children: description }),
195079
- /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(
194966
+ return /* @__PURE__ */ (0, import_jsx_runtime700.jsxs)(Form.Item, { children: [
194967
+ /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(Form.Label, { children: label }),
194968
+ description && /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(Form.Hint, { children: description }),
194969
+ /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(
195080
194970
  FormExtensionFieldComponent,
195081
194971
  {
195082
194972
  field: field2,
@@ -195085,7 +194975,7 @@ var init_form_extension_zone = __esm({
195085
194975
  placeholder
195086
194976
  }
195087
194977
  ) }),
195088
- /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(Form.ErrorMessage, {})
194978
+ /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(Form.ErrorMessage, {})
195089
194979
  ] });
195090
194980
  }
195091
194981
  }
@@ -195100,20 +194990,20 @@ var init_form_extension_zone = __esm({
195100
194990
  const { t: t5 } = (0, import_react_i18next492.useTranslation)();
195101
194991
  if (component) {
195102
194992
  const Component5 = component;
195103
- return /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(Component5, { ...field, placeholder });
194993
+ return /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(Component5, { ...field, placeholder });
195104
194994
  }
195105
194995
  switch (type) {
195106
194996
  case "text": {
195107
- return /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(import_ui460.Input, { ...field, placeholder });
194997
+ return /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(import_ui460.Input, { ...field, placeholder });
195108
194998
  }
195109
194999
  case "number": {
195110
- return /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(import_ui460.Input, { ...field, placeholder, type: "number" });
195000
+ return /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(import_ui460.Input, { ...field, placeholder, type: "number" });
195111
195001
  }
195112
195002
  case "boolean": {
195113
- return /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(import_ui460.Switch, { className: "rtl:rotate-180", dir: "ltr", ...field });
195003
+ return /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(import_ui460.Switch, { className: "rtl:rotate-180", dir: "ltr", ...field });
195114
195004
  }
195115
195005
  default: {
195116
- return /* @__PURE__ */ (0, import_jsx_runtime701.jsx)(import_ui460.InlineTip, { variant: "warning", label: t5("general.warning"), children: "The field type does not support rendering a fallback component. Please provide a component prop." });
195006
+ return /* @__PURE__ */ (0, import_jsx_runtime700.jsx)(import_ui460.InlineTip, { variant: "warning", label: t5("general.warning"), children: "The field type does not support rendering a fallback component. Please provide a component prop." });
195117
195007
  }
195118
195008
  }
195119
195009
  };
@@ -195180,7 +195070,7 @@ var import_i18n6 = __toESM(require("virtual:medusa/i18n"));
195180
195070
  var import_menu_items = __toESM(require("virtual:medusa/menu-items"));
195181
195071
  var import_routes = __toESM(require("virtual:medusa/routes"));
195182
195072
  var import_widgets = __toESM(require("virtual:medusa/widgets"));
195183
- var import_jsx_runtime702 = require("react/jsx-runtime");
195073
+ var import_jsx_runtime701 = require("react/jsx-runtime");
195184
195074
  var localPlugin = {
195185
195075
  widgetModule: import_widgets.default,
195186
195076
  routeModule: import_routes.default,
@@ -195193,6 +195083,6 @@ function App({ plugins = [] }) {
195193
195083
  const app = new DashboardApp({
195194
195084
  plugins: [localPlugin, ...plugins]
195195
195085
  });
195196
- return /* @__PURE__ */ (0, import_jsx_runtime702.jsx)("div", { children: app.render() });
195086
+ return /* @__PURE__ */ (0, import_jsx_runtime701.jsx)("div", { children: app.render() });
195197
195087
  }
195198
195088
  var app_default = App;