@mercurjs/admin 2.0.2 → 2.1.0-canary.4

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 (139) hide show
  1. package/dist/{add-campaign-promotions-TA7QC32P.js → add-campaign-promotions-MTQ7OZDE.js} +3 -3
  2. package/dist/{adjust-inventory-W4H5F2JA.js → adjust-inventory-5KY3SJY4.js} +1 -1
  3. package/dist/{api-key-management-detail-LMKKDTRJ.js → api-key-management-detail-D7NH5LTC.js} +1 -1
  4. package/dist/{attribute-create-IRJTPQCF.js → attribute-create-SXEM4KJD.js} +1 -1
  5. package/dist/{attribute-detail-7FLCTP3I.js → attribute-detail-Y3GONKA7.js} +1 -1
  6. package/dist/{attribute-edit-6YNHG3QV.js → attribute-edit-NGJEWLXP.js} +1 -1
  7. package/dist/{attribute-list-C5NS26AD.js → attribute-list-VODH4R2I.js} +1 -1
  8. package/dist/{campaign-detail-E37P67AC.js → campaign-detail-EFU3O644.js} +5 -5
  9. package/dist/{categories-metadata-34L5C2TK.js → categories-metadata-53FPHDOQ.js} +1 -1
  10. package/dist/{category-detail-B23F726Q.js → category-detail-6BSTZK72.js} +3 -3
  11. package/dist/{category-products-2LKOHEWO.js → category-products-SEL2KF5R.js} +2 -2
  12. package/dist/{chunk-HS322YUO.js → chunk-2SNDWSS5.js} +1 -1
  13. package/dist/{chunk-UYKWOC5A.js → chunk-627NOMMX.js} +1 -1
  14. package/dist/{chunk-KERA6OZN.js → chunk-6O25AZDD.js} +1 -1
  15. package/dist/{chunk-RRAIAUBR.js → chunk-7U6RLIWB.js} +1 -1
  16. package/dist/{chunk-BBANQAF4.js → chunk-C4V5XT6K.js} +1 -1
  17. package/dist/{chunk-F7VTQIU7.js → chunk-CZSJ7E5Q.js} +1 -1
  18. package/dist/{chunk-A2TQNJZP.js → chunk-FNHNSA3H.js} +2 -1
  19. package/dist/{chunk-ZFEGVWHT.js → chunk-GZWI6ROZ.js} +38 -6
  20. package/dist/{chunk-QIZUNM6F.js → chunk-HV7ETS5U.js} +1 -1
  21. package/dist/{chunk-EVGVH6CU.js → chunk-JN3XBZHG.js} +1 -1
  22. package/dist/{chunk-6OTK5LAS.js → chunk-L5SYZUAC.js} +1 -1
  23. package/dist/{chunk-LW57KBYK.js → chunk-LVUJDBZC.js} +1 -1
  24. package/dist/{chunk-M3YP3NX4.js → chunk-OVPKR4G7.js} +9 -0
  25. package/dist/{chunk-RVAVU222.js → chunk-PUNC2TLV.js} +1 -1
  26. package/dist/{chunk-WSR2ZXAJ.js → chunk-R2UP4YIY.js} +1 -1
  27. package/dist/{chunk-ZMDE5HEV.js → chunk-RMMKSTB4.js} +32 -4
  28. package/dist/{chunk-MMTCBVUV.js → chunk-TKRQTEWN.js} +1 -1
  29. package/dist/{chunk-AVXOG7CE.js → chunk-VTH3LTDK.js} +1 -1
  30. package/dist/{chunk-G4LGZF5F.js → chunk-VWE3LQEJ.js} +1 -1
  31. package/dist/{chunk-GYKVLGU4.js → chunk-WYJSLRW5.js} +1 -1
  32. package/dist/{chunk-N7QGYSFB.js → chunk-XGCSSCLB.js} +1 -1
  33. package/dist/{chunk-UBS6VEGB.js → chunk-XJHXEWWX.js} +1 -1
  34. package/dist/{chunk-NRKVFULI.js → chunk-XVRT2TFF.js} +353 -116
  35. package/dist/{chunk-CMX37MSO.js → chunk-ZRWRLDAH.js} +1 -1
  36. package/dist/{collection-add-products-RHIQZ37R.js → collection-add-products-4QUC6CYD.js} +2 -2
  37. package/dist/{collection-detail-SJ4ZZLWY.js → collection-detail-YS424JMR.js} +3 -3
  38. package/dist/{collection-list-OFZGXVJA.js → collection-list-4LAFOABI.js} +2 -2
  39. package/dist/{collection-metadata-3CDRKSCP.js → collection-metadata-GA7WIUTG.js} +1 -1
  40. package/dist/{commission-rate-create-OOVFRTYM.js → commission-rate-create-NZY3GFV4.js} +3 -3
  41. package/dist/{commission-rate-detail-5XFV6XH2.js → commission-rate-detail-Z3P43MU7.js} +1 -1
  42. package/dist/{commission-rate-edit-6B4P2GOV.js → commission-rate-edit-EOO7YGWQ.js} +3 -3
  43. package/dist/{customer-detail-Q4K56AZ4.js → customer-detail-EHMESZAY.js} +1 -1
  44. package/dist/{customer-group-detail-NSEFUNCF.js → customer-group-detail-CXVPY32U.js} +1 -1
  45. package/dist/{customer-group-list-GCEKCBUE.js → customer-group-list-L474CRAE.js} +1 -1
  46. package/dist/{customer-group-metadata-LXJK3IMS.js → customer-group-metadata-YO3J3DWX.js} +1 -1
  47. package/dist/{customer-metadata-ZZSCYFHY.js → customer-metadata-T4Y3LP5Y.js} +1 -1
  48. package/dist/{customers-add-customer-group-TIBDJPYF.js → customers-add-customer-group-J7EZP5OJ.js} +1 -1
  49. package/dist/{edit-inventory-item-Y3CIG6L5.js → edit-inventory-item-DBMS75NM.js} +1 -1
  50. package/dist/{edit-inventory-item-attributes-CZNIVWXY.js → edit-inventory-item-attributes-655BP5CZ.js} +1 -1
  51. package/dist/{edit-rules-G7GRUQL6.js → edit-rules-JNV3HBLD.js} +1 -1
  52. package/dist/index.js +155 -154
  53. package/dist/{inventory-create-MFCGCJFB.js → inventory-create-ZHD7BUCH.js} +1 -1
  54. package/dist/{inventory-detail-6V43ZQDK.js → inventory-detail-TQSQQAOS.js} +1 -1
  55. package/dist/{inventory-metadata-PFXMJTSB.js → inventory-metadata-YHRVDL3T.js} +1 -1
  56. package/dist/{inventory-stock-B4FYZAQB.js → inventory-stock-BF2G57RR.js} +1 -1
  57. package/dist/{location-detail-NOUHQA4M.js → location-detail-OMR5VQNR.js} +1 -1
  58. package/dist/{location-fulfillment-providers-A27CQMJN.js → location-fulfillment-providers-LRVFTKYQ.js} +2 -2
  59. package/dist/{location-list-AVCPUKBH.js → location-list-TJWKHGHC.js} +1 -1
  60. package/dist/{location-service-zone-shipping-option-create-DREWJ7SR.js → location-service-zone-shipping-option-create-TE7I3OGE.js} +1 -1
  61. package/dist/{login-QCYKZCZP.js → login-2UEH2J2Z.js} +1 -1
  62. package/dist/{marketplace-detail-CYMZCRWM.js → marketplace-detail-RHJL3RKS.js} +1 -1
  63. package/dist/{marketplace-metadata-LYNL3W6L.js → marketplace-metadata-IPXXRTER.js} +1 -1
  64. package/dist/{order-create-claim-HWZI4OEK.js → order-create-claim-KGBBZAJ4.js} +1 -1
  65. package/dist/{order-create-edit-VIIAC2AA.js → order-create-edit-5IHO5BMD.js} +1 -1
  66. package/dist/{order-create-exchange-KRGBFSCC.js → order-create-exchange-FRKAMGEB.js} +1 -1
  67. package/dist/{order-create-fulfillment-K4LB6U6E.js → order-create-fulfillment-ZXPUXY2M.js} +1 -1
  68. package/dist/{order-create-refund-2OCPOAJS.js → order-create-refund-SBU4PTFE.js} +1 -1
  69. package/dist/{order-create-shipment-BD3DKSJX.js → order-create-shipment-BUDXW54A.js} +1 -1
  70. package/dist/{order-detail-GETGE7YJ.js → order-detail-J7SR4MOZ.js} +2 -2
  71. package/dist/{order-edit-billing-address-3GN3QU4Y.js → order-edit-billing-address-LITRQ5LJ.js} +2 -2
  72. package/dist/{order-edit-email-D6KSNSY4.js → order-edit-email-TACZI5EX.js} +1 -1
  73. package/dist/{order-edit-shipping-address-Z7RP4UBB.js → order-edit-shipping-address-FPTJB5L5.js} +1 -1
  74. package/dist/{order-list-727TI7BS.js → order-list-D44NOK54.js} +2 -2
  75. package/dist/{order-metadata-UCAS6KEK.js → order-metadata-6JOL5X6I.js} +1 -1
  76. package/dist/{order-receive-return-YZGUVELT.js → order-receive-return-5YMKBTQ3.js} +1 -1
  77. package/dist/{order-request-transfer-DBXAIXEG.js → order-request-transfer-LSANIPZ5.js} +1 -1
  78. package/dist/pages/index.d.ts +165 -165
  79. package/dist/pages/index.js +23 -23
  80. package/dist/{price-list-create-SJBCYSRX.js → price-list-create-P5JB34NQ.js} +3 -3
  81. package/dist/{price-list-detail-VA4F6JQJ.js → price-list-detail-Y5GY2XNE.js} +3 -3
  82. package/dist/{price-list-prices-add-BLORGT25.js → price-list-prices-add-3PIDYNA4.js} +3 -3
  83. package/dist/{price-list-prices-edit-7WHKIZHY.js → price-list-prices-edit-DCESLO3A.js} +1 -1
  84. package/dist/{product-create-KEJB3U44.js → product-create-DRZFQDRY.js} +4 -4
  85. package/dist/{product-create-variant-YZODW67L.js → product-create-variant-ZB3IHAFV.js} +1 -1
  86. package/dist/{product-detail-Y24FRUWA.js → product-detail-57X454TL.js} +1 -1
  87. package/dist/{product-export-4G44DDXA.js → product-export-I3PPG7KC.js} +2 -2
  88. package/dist/{product-import-TIPIYEJJ.js → product-import-MNEGYIKE.js} +1 -1
  89. package/dist/{product-list-BLFQWHIA.js → product-list-UZQDS36T.js} +3 -3
  90. package/dist/{product-media-IKMGI2QA.js → product-media-X6GYGJDU.js} +2 -2
  91. package/dist/{product-metadata-SKNZWKWO.js → product-metadata-6P42YQNI.js} +1 -1
  92. package/dist/{product-stock-WIPVYJUH.js → product-stock-P2QSUR4K.js} +1 -1
  93. package/dist/{product-tag-create-3QK7MKMI.js → product-tag-create-QKHJET6O.js} +1 -1
  94. package/dist/{product-tag-detail-LSMLNJW6.js → product-tag-detail-NQGZEEFG.js} +3 -3
  95. package/dist/{product-tag-edit-NHRQ55DX.js → product-tag-edit-TC3UMIAJ.js} +1 -1
  96. package/dist/{product-tag-list-UHBM6KBT.js → product-tag-list-3DLJ3G7X.js} +2 -2
  97. package/dist/{product-tag-metadata-DGH7UF4L.js → product-tag-metadata-DKYMVBXL.js} +1 -1
  98. package/dist/{product-type-detail-GNRN4KTB.js → product-type-detail-VJJITHJS.js} +3 -3
  99. package/dist/{product-type-metadata-NFMNORIB.js → product-type-metadata-I4RC764V.js} +1 -1
  100. package/dist/{product-variant-detail-TGSUSOEB.js → product-variant-detail-Z3BZJ6EJ.js} +1 -1
  101. package/dist/{product-variant-edit-6OJRQWC6.js → product-variant-edit-P3NBX6LJ.js} +1 -1
  102. package/dist/{product-variant-metadata-4MWJAXYI.js → product-variant-metadata-HMBGDFCO.js} +1 -1
  103. package/dist/{promotion-create-CPRWDBDW.js → promotion-create-JMTQ5U53.js} +1 -1
  104. package/dist/{promotion-detail-KGIX6TA2.js → promotion-detail-CWBF3HPU.js} +4 -4
  105. package/dist/{promotion-list-U7PXQLZT.js → promotion-list-JVR5ZF26.js} +4 -4
  106. package/dist/{refund-reason-create-KYM2BCJ2.js → refund-reason-create-H6BJDVQQ.js} +1 -1
  107. package/dist/{refund-reason-edit-JIG7FL7D.js → refund-reason-edit-JXP5LXF6.js} +1 -1
  108. package/dist/{refund-reason-list-IO4INIKF.js → refund-reason-list-O26REP5X.js} +1 -1
  109. package/dist/{region-metadata-NJUXGJJZ.js → region-metadata-JUTPPKPR.js} +1 -1
  110. package/dist/{reservation-detail-TKILHE26.js → reservation-detail-4EJK3HEF.js} +1 -1
  111. package/dist/{reservation-metadata-V7BLDGSJ.js → reservation-metadata-VOJDR77H.js} +1 -1
  112. package/dist/{reset-password-SXAC55FW.js → reset-password-FCS4752B.js} +1 -1
  113. package/dist/{sales-channel-add-products-27YLUPZP.js → sales-channel-add-products-MOA6UWOB.js} +2 -2
  114. package/dist/{sales-channel-detail-EW2YN7VL.js → sales-channel-detail-RZES4ARA.js} +3 -3
  115. package/dist/{sales-channel-list-JOSLAWUO.js → sales-channel-list-7VVGSGC5.js} +1 -1
  116. package/dist/{sales-channel-metadata-YABMFKT3.js → sales-channel-metadata-U4JWJDUK.js} +1 -1
  117. package/dist/{shipping-option-type-create-KXRPACLG.js → shipping-option-type-create-3S6VXMCK.js} +1 -1
  118. package/dist/{shipping-option-type-detail-KHX2BRFP.js → shipping-option-type-detail-6QINYVWX.js} +1 -1
  119. package/dist/{shipping-option-type-edit-N3L4TPUK.js → shipping-option-type-edit-2JFDG4D5.js} +1 -1
  120. package/dist/{shipping-option-type-list-5A676BZT.js → shipping-option-type-list-FGCS5LGL.js} +1 -1
  121. package/dist/{shipping-profile-metadata-WDM4Y653.js → shipping-profile-metadata-NBCZ3JVM.js} +1 -1
  122. package/dist/{store-address-edit-7BBZSSIP.js → store-address-edit-ATQ6TYQO.js} +1 -1
  123. package/dist/{store-closure-edit-CN5JR4F5.js → store-closure-edit-5KFXHH6R.js} +1 -1
  124. package/dist/{store-create-FUYTHJL5.js → store-create-3S5LJOUB.js} +1 -1
  125. package/dist/{store-details-65JQK3M3.js → store-details-UB3QR3RN.js} +12 -3
  126. package/dist/{store-edit-IQAVLFU5.js → store-edit-O4D6F4SA.js} +3 -3
  127. package/dist/{store-list-DWFAFCKV.js → store-list-35G4TP5I.js} +3 -3
  128. package/dist/{store-member-invite-GAWCXSWL.js → store-member-invite-2SEYT7EL.js} +1 -1
  129. package/dist/{store-payment-details-edit-Z3GLY4TO.js → store-payment-details-edit-DAULPMDU.js} +1 -1
  130. package/dist/{store-professional-details-edit-7KWQOK46.js → store-professional-details-edit-CVQW4R4J.js} +1 -1
  131. package/dist/{tax-region-create-6VHCIPP7.js → tax-region-create-Q6TXHTRE.js} +2 -2
  132. package/dist/{tax-region-detail-AZVNX4QN.js → tax-region-detail-BSLXK42P.js} +1 -1
  133. package/dist/{tax-region-edit-7A6MZBXC.js → tax-region-edit-3FNGCVR2.js} +1 -1
  134. package/dist/{tax-region-metadata-UZYHKPTE.js → tax-region-metadata-WSHLDCN6.js} +1 -1
  135. package/dist/{tax-region-province-detail-7ERAOT3Y.js → tax-region-province-detail-4RV3L5QO.js} +1 -1
  136. package/dist/{tax-region-tax-override-create-TIPPPVTR.js → tax-region-tax-override-create-HEY53Y3G.js} +3 -3
  137. package/dist/{tax-region-tax-override-edit-HDQ4NS5I.js → tax-region-tax-override-edit-6KET7TJP.js} +3 -3
  138. package/dist/{user-metadata-JGCXU4OO.js → user-metadata-JNQQLJAM.js} +1 -1
  139. package/package.json +5 -5
@@ -2,8 +2,8 @@ import {
2
2
  require_dist
3
3
  } from "./chunk-ZZO3INVE.js";
4
4
  import {
5
- DateRangeDisplay
6
- } from "./chunk-RK5N3XIX.js";
5
+ useOrderTableColumns
6
+ } from "./chunk-DBYUB2YI.js";
7
7
  import {
8
8
  DateCell
9
9
  } from "./chunk-25LYVP3C.js";
@@ -13,6 +13,9 @@ import {
13
13
  import {
14
14
  IconAvatar
15
15
  } from "./chunk-U2EI2ZLM.js";
16
+ import {
17
+ useProductTableColumns
18
+ } from "./chunk-Z5I2Z6L3.js";
16
19
  import {
17
20
  TwoColumnPage
18
21
  } from "./chunk-V5J73NPW.js";
@@ -29,9 +32,21 @@ import {
29
32
  import {
30
33
  ActionMenu
31
34
  } from "./chunk-BDGZ4EQO.js";
35
+ import {
36
+ useOrderTableFilters
37
+ } from "./chunk-25YTS3TI.js";
32
38
  import {
33
39
  useMemberTableQuery
34
40
  } from "./chunk-NNI6QKKZ.js";
41
+ import {
42
+ useOrderTableQuery
43
+ } from "./chunk-3B6MTW5G.js";
44
+ import {
45
+ useProductTableFilters
46
+ } from "./chunk-R2UP4YIY.js";
47
+ import {
48
+ useProductTableQuery
49
+ } from "./chunk-VVWB3GIK.js";
35
50
  import {
36
51
  useSubscriptionPlans
37
52
  } from "./chunk-3MDRW5MA.js";
@@ -40,11 +55,15 @@ import {
40
55
  useRemoveSellerMember,
41
56
  useSeller,
42
57
  useSellerMembers,
58
+ useSellerProducts,
43
59
  useSuspendSeller,
44
60
  useTerminateSeller,
45
61
  useUnsuspendSeller,
46
62
  useUnterminateSeller
47
- } from "./chunk-M3YP3NX4.js";
63
+ } from "./chunk-OVPKR4G7.js";
64
+ import {
65
+ useOrders
66
+ } from "./chunk-R74OHYTB.js";
48
67
  import {
49
68
  __toESM
50
69
  } from "./chunk-NBMM2TZK.js";
@@ -52,11 +71,11 @@ import {
52
71
  // src/pages/stores/store-details/components/store-details.tsx
53
72
  import { Children as Children3, useState as useState2 } from "react";
54
73
  import { useParams } from "react-router-dom";
74
+ import { useTranslation as useTranslation13 } from "react-i18next";
55
75
  var import_types3 = __toESM(require_dist(), 1);
56
76
 
57
77
  // src/pages/stores/store-details/components/store-general-section.tsx
58
78
  import { Children as Children2 } from "react";
59
- import { Photo } from "@medusajs/icons";
60
79
  import { Badge, Container, Text } from "@medusajs/ui";
61
80
  import { useTranslation as useTranslation2 } from "react-i18next";
62
81
 
@@ -278,7 +297,21 @@ var StoreGeneralSection = ({
278
297
  alt: seller.name,
279
298
  className: "h-full w-full object-cover"
280
299
  }
281
- ) : /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ jsx2(Photo, { className: "text-ui-fg-muted" }) }) }),
300
+ ) : /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ jsx2(
301
+ "div",
302
+ {
303
+ className: "h-full w-full",
304
+ style: {
305
+ background: `repeating-linear-gradient(
306
+ -45deg,
307
+ transparent,
308
+ transparent 10px,
309
+ rgba(255,255,255,0.5) 10px,
310
+ rgba(255,255,255,0.5) 20px
311
+ )`
312
+ }
313
+ }
314
+ ) }) }),
282
315
  /* @__PURE__ */ jsx2(StoreDetailHeader, { seller }),
283
316
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
284
317
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
@@ -300,12 +333,12 @@ var StoreGeneralSection = ({
300
333
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
301
334
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
302
335
  /* @__PURE__ */ jsx2(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
303
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: currencies[seller.currency_code.toUpperCase()].name })
336
+ /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: currencies[seller.currency_code?.toUpperCase()]?.name || "-" })
304
337
  ] })
305
338
  ] }),
306
339
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
307
340
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.premium") }),
308
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.is_premium ? t("general.yes") : t("general.no") })
341
+ /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.is_premium ? t("stores.premium.yes") : t("stores.premium.no") })
309
342
  ] }),
310
343
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
311
344
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.createdAt") }),
@@ -351,10 +384,10 @@ var StorePaymentDetailsSection = ({
351
384
  }
352
385
  )
353
386
  ] }),
354
- /* @__PURE__ */ jsx3("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx3("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-4", children: [
387
+ details ? /* @__PURE__ */ jsx3("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx3("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-4", children: [
355
388
  /* @__PURE__ */ jsx3(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx3(CreditCard, {}) }),
356
389
  /* @__PURE__ */ jsxs3("div", { className: "flex flex-1 flex-col", children: [
357
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: details?.holder_name || "-" }),
390
+ /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: details.holder_name || "-" }),
358
391
  /* @__PURE__ */ jsx3(
359
392
  Text2,
360
393
  {
@@ -365,7 +398,10 @@ var StorePaymentDetailsSection = ({
365
398
  }
366
399
  )
367
400
  ] })
368
- ] }) }) })
401
+ ] }) }) }) : /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
402
+ /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("store.paymentDetails.empty.title") }),
403
+ /* @__PURE__ */ jsx3(Text2, { size: "small", className: "text-ui-fg-muted", children: t("store.paymentDetails.empty.message") })
404
+ ] })
369
405
  ] });
370
406
  };
371
407
 
@@ -379,6 +415,7 @@ var StoreCompanyDetailsSection = ({
379
415
  }) => {
380
416
  const { t } = useTranslation4();
381
417
  const details = seller.professional_details;
418
+ const hasDetails = details?.corporate_name || details?.registration_number || details?.tax_id;
382
419
  return /* @__PURE__ */ jsxs4(Container3, { className: "p-0", children: [
383
420
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", children: [
384
421
  /* @__PURE__ */ jsx4(Heading3, { level: "h2", children: t("store.professionalDetails.header") }),
@@ -399,7 +436,7 @@ var StoreCompanyDetailsSection = ({
399
436
  }
400
437
  )
401
438
  ] }),
402
- /* @__PURE__ */ jsx4("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx4("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-4", children: [
439
+ hasDetails ? /* @__PURE__ */ jsx4("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx4("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-4", children: [
403
440
  /* @__PURE__ */ jsx4(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx4(Buildings, {}) }),
404
441
  /* @__PURE__ */ jsxs4("div", { className: "flex flex-1 flex-col", children: [
405
442
  /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: details?.corporate_name || "-" }),
@@ -413,22 +450,26 @@ var StoreCompanyDetailsSection = ({
413
450
  }
414
451
  )
415
452
  ] })
416
- ] }) }) })
453
+ ] }) }) }) : /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
454
+ /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("store.professionalDetails.empty.title") }),
455
+ /* @__PURE__ */ jsx4(Text3, { size: "small", className: "text-ui-fg-muted", children: t("store.professionalDetails.empty.message") })
456
+ ] })
417
457
  ] });
418
458
  };
419
459
 
420
460
  // src/pages/stores/store-details/components/store-configuration-section.tsx
421
461
  import { PencilSquare as PencilSquare4 } from "@medusajs/icons";
422
- import { Container as Container4, Heading as Heading4 } from "@medusajs/ui";
462
+ import { Container as Container4, Heading as Heading4, Table, Text as Text4 } from "@medusajs/ui";
423
463
  import { useTranslation as useTranslation5 } from "react-i18next";
424
464
  import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
425
465
  var StoreConfigurationSection = ({
426
466
  seller
427
467
  }) => {
428
468
  const { t } = useTranslation5();
429
- return /* @__PURE__ */ jsxs5(Container4, { className: "flex flex-col gap-y-4", children: [
430
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", children: [
431
- /* @__PURE__ */ jsx5(Heading4, { level: "h2", children: t("store.scheduledClosure.header") }),
469
+ const hasTimeOff = Boolean(seller.closed_from || seller.closed_to);
470
+ return /* @__PURE__ */ jsxs5(Container4, { className: "divide-y p-0", children: [
471
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between px-6 py-4", children: [
472
+ /* @__PURE__ */ jsx5(Heading4, { level: "h2", children: t("store.timeOff.header") }),
432
473
  /* @__PURE__ */ jsx5(
433
474
  ActionMenu,
434
475
  {
@@ -446,20 +487,25 @@ var StoreConfigurationSection = ({
446
487
  }
447
488
  )
448
489
  ] }),
449
- /* @__PURE__ */ jsx5(
450
- DateRangeDisplay,
451
- {
452
- startsAt: seller.closed_from,
453
- endsAt: seller.closed_to,
454
- showTime: true
455
- }
456
- )
490
+ hasTimeOff ? /* @__PURE__ */ jsxs5(Table, { children: [
491
+ /* @__PURE__ */ jsx5(Table.Header, { children: /* @__PURE__ */ jsxs5(Table.Row, { children: [
492
+ /* @__PURE__ */ jsx5(Table.HeaderCell, { children: t("fields.startDate") }),
493
+ /* @__PURE__ */ jsx5(Table.HeaderCell, { children: t("fields.endDate") })
494
+ ] }) }),
495
+ /* @__PURE__ */ jsx5(Table.Body, { children: /* @__PURE__ */ jsxs5(Table.Row, { children: [
496
+ /* @__PURE__ */ jsx5(Table.Cell, { children: /* @__PURE__ */ jsx5(DateCell, { date: seller.closed_from ?? null }) }),
497
+ /* @__PURE__ */ jsx5(Table.Cell, { children: /* @__PURE__ */ jsx5(DateCell, { date: seller.closed_to ?? null }) })
498
+ ] }) })
499
+ ] }) : /* @__PURE__ */ jsxs5("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
500
+ /* @__PURE__ */ jsx5(Text4, { size: "small", leading: "compact", weight: "plus", children: t("store.timeOff.empty.title") }),
501
+ /* @__PURE__ */ jsx5(Text4, { size: "small", className: "text-ui-fg-muted", children: t("store.timeOff.empty.message") })
502
+ ] })
457
503
  ] });
458
504
  };
459
505
 
460
506
  // src/pages/stores/store-details/components/store-address-section.tsx
461
507
  import { BuildingStorefront, PencilSquare as PencilSquare5 } from "@medusajs/icons";
462
- import { Container as Container5, Heading as Heading5, Text as Text4 } from "@medusajs/ui";
508
+ import { Container as Container5, Heading as Heading5, Text as Text5 } from "@medusajs/ui";
463
509
  import { useTranslation as useTranslation6 } from "react-i18next";
464
510
  import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
465
511
  var StoreAddressSection = ({ seller }) => {
@@ -495,27 +541,30 @@ var StoreAddressSection = ({ seller }) => {
495
541
  }
496
542
  )
497
543
  ] }),
498
- /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx6("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-4", children: [
544
+ formattedAddress ? /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx6("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-4", children: [
499
545
  /* @__PURE__ */ jsx6(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx6(BuildingStorefront, {}) }),
500
546
  /* @__PURE__ */ jsxs6("div", { className: "flex flex-1 flex-col", children: [
501
- /* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: [address?.first_name, address?.last_name].filter(Boolean).join(" ") || "-" }),
547
+ /* @__PURE__ */ jsx6(Text5, { size: "small", leading: "compact", weight: "plus", children: [address?.first_name, address?.last_name].filter(Boolean).join(" ") || address?.company || formattedAddress }),
502
548
  /* @__PURE__ */ jsx6(
503
- Text4,
549
+ Text5,
504
550
  {
505
551
  size: "small",
506
552
  leading: "compact",
507
553
  className: "text-ui-fg-subtle",
508
- children: formattedAddress || "-"
554
+ children: formattedAddress
509
555
  }
510
556
  )
511
557
  ] })
512
- ] }) }) })
558
+ ] }) }) }) : /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
559
+ /* @__PURE__ */ jsx6(Text5, { size: "small", leading: "compact", weight: "plus", children: t("store.address.empty.title") }),
560
+ /* @__PURE__ */ jsx6(Text5, { size: "small", className: "text-ui-fg-muted", children: t("store.address.empty.message") })
561
+ ] })
513
562
  ] });
514
563
  };
515
564
 
516
565
  // src/pages/stores/store-details/components/store-subscription-section.tsx
517
566
  import { CurrencyDollar, TriangleRightMini } from "@medusajs/icons";
518
- import { Container as Container6, Heading as Heading6, Text as Text5 } from "@medusajs/ui";
567
+ import { Container as Container6, Heading as Heading6, Text as Text6 } from "@medusajs/ui";
519
568
  import { useTranslation as useTranslation7 } from "react-i18next";
520
569
  import { Link } from "react-router-dom";
521
570
  import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
@@ -548,9 +597,9 @@ var StoreSubscriptionSection = ({
548
597
  children: /* @__PURE__ */ jsx7("div", { className: "shadow-elevation-card-rest bg-ui-bg-component rounded-md px-4 py-2 transition-colors", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-4", children: [
549
598
  /* @__PURE__ */ jsx7(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx7(CurrencyDollar, {}) }),
550
599
  /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
551
- /* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: plan.currency_code.toUpperCase() }),
600
+ /* @__PURE__ */ jsx7(Text6, { size: "small", leading: "compact", weight: "plus", children: plan.currency_code.toUpperCase() }),
552
601
  /* @__PURE__ */ jsxs7(
553
- Text5,
602
+ Text6,
554
603
  {
555
604
  size: "small",
556
605
  leading: "compact",
@@ -728,7 +777,7 @@ import {
728
777
  Button as Button2,
729
778
  Container as Container8,
730
779
  Heading as Heading8,
731
- Text as Text6,
780
+ Text as Text7,
732
781
  Textarea,
733
782
  toast as toast3
734
783
  } from "@medusajs/ui";
@@ -759,109 +808,297 @@ var StoreRequestSection = ({ seller }) => {
759
808
  toast3.error(error.message);
760
809
  }
761
810
  };
762
- return /* @__PURE__ */ jsx10(
763
- "div",
811
+ return /* @__PURE__ */ jsxs9(Container8, { className: "p-0", children: [
812
+ /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-3 border-b border-ui-border-base px-6 py-4", children: [
813
+ /* @__PURE__ */ jsx10(ExclamationCircleSolid, { className: "text-orange-500" }),
814
+ /* @__PURE__ */ jsx10(Heading8, { level: "h2", children: t("stores.request.title") })
815
+ ] }),
816
+ /* @__PURE__ */ jsx10("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsx10(Text7, { className: "text-ui-fg-subtle", children: t("stores.request.description") }) }),
817
+ /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-2 border-t border-ui-border-base px-6 py-4", children: [
818
+ /* @__PURE__ */ jsx10(Text7, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: t("stores.request.reasonLabel") }),
819
+ /* @__PURE__ */ jsx10(
820
+ Textarea,
821
+ {
822
+ placeholder: t("stores.request.reasonPlaceholder"),
823
+ value: reason,
824
+ onChange: (e) => setReason(e.target.value)
825
+ }
826
+ )
827
+ ] }),
828
+ /* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-end gap-x-2 rounded-b-lg border-t border-ui-border-base bg-ui-bg-subtle px-6 py-4", children: [
829
+ /* @__PURE__ */ jsx10(
830
+ Button2,
831
+ {
832
+ size: "small",
833
+ variant: "secondary",
834
+ onClick: handleConfirm,
835
+ isLoading: isApproving,
836
+ children: t("stores.request.confirm")
837
+ }
838
+ ),
839
+ /* @__PURE__ */ jsx10(
840
+ Button2,
841
+ {
842
+ size: "small",
843
+ variant: "secondary",
844
+ onClick: handleReject,
845
+ isLoading: isSuspending,
846
+ children: t("stores.request.suspend")
847
+ }
848
+ )
849
+ ] })
850
+ ] });
851
+ };
852
+
853
+ // src/pages/stores/store-details/components/store-orders-section.tsx
854
+ import { Container as Container9, Heading as Heading9 } from "@medusajs/ui";
855
+ import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
856
+ import { useTranslation as useTranslation11 } from "react-i18next";
857
+ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
858
+ var PAGE_SIZE2 = 10;
859
+ var PREFIX = "store-orders";
860
+ var DEFAULT_RELATIONS = "*customer,*items,*sales_channel";
861
+ var DEFAULT_FIELDS = "id,status,display_id,created_at,email,fulfillment_status,payment_status,total,currency_code";
862
+ var StoreOrdersSection = ({ sellerId }) => {
863
+ const { t } = useTranslation11();
864
+ const { searchParams, raw } = useOrderTableQuery({
865
+ pageSize: PAGE_SIZE2,
866
+ prefix: PREFIX
867
+ });
868
+ const { orders, count, isLoading, isError, error } = useOrders(
764
869
  {
765
- style: {
766
- background: "repeating-linear-gradient(-45deg, rgb(212, 212, 216, 0.15), rgb(212, 212, 216,.15) 10px, transparent 10px, transparent 20px)"
767
- },
768
- className: "-m-4 mb-1 border-b border-l p-4",
769
- children: /* @__PURE__ */ jsx10(Container8, { className: "flex items-center justify-between p-0", children: /* @__PURE__ */ jsxs9("div", { className: "flex w-full flex-col divide-y divide-dashed", children: [
770
- /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-2 px-6 py-4", children: [
771
- /* @__PURE__ */ jsx10(ExclamationCircleSolid, { className: "text-orange-500" }),
772
- /* @__PURE__ */ jsx10(Heading8, { level: "h2", children: t("stores.request.title", "Store request") })
773
- ] }),
774
- /* @__PURE__ */ jsx10("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsx10(Text6, { className: "text-ui-fg-subtle", children: t(
775
- "stores.request.description",
776
- "A new store request has been submitted. Review the details, make any necessary updates, and choose whether to confirm and publish the store or suspend the request."
777
- ) }) }),
778
- /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-2 px-6 py-4", children: [
779
- /* @__PURE__ */ jsx10(Text6, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: t("stores.request.reasonLabel", "Suspend reason") }),
780
- /* @__PURE__ */ jsx10(
781
- Textarea,
782
- {
783
- placeholder: t(
784
- "stores.request.reasonPlaceholder",
785
- "Optional reason for suspending this store..."
786
- ),
787
- value: reason,
788
- onChange: (e) => setReason(e.target.value)
789
- }
790
- )
791
- ] }),
792
- /* @__PURE__ */ jsxs9("div", { className: "bg-ui-bg-subtle flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4", children: [
793
- /* @__PURE__ */ jsx10(
794
- Button2,
795
- {
796
- size: "small",
797
- variant: "secondary",
798
- onClick: handleConfirm,
799
- isLoading: isApproving,
800
- children: t("stores.request.confirm", "Confirm")
801
- }
802
- ),
803
- /* @__PURE__ */ jsx10(
804
- Button2,
805
- {
806
- size: "small",
807
- variant: "secondary",
808
- onClick: handleReject,
809
- isLoading: isSuspending,
810
- children: t("stores.request.suspend", "Suspend")
811
- }
812
- )
813
- ] })
814
- ] }) })
870
+ ...searchParams,
871
+ seller_id: [sellerId],
872
+ fields: `${DEFAULT_FIELDS},${DEFAULT_RELATIONS}`
873
+ },
874
+ {
875
+ placeholderData: keepPreviousData2
815
876
  }
816
877
  );
878
+ const columns = useOrderTableColumns({
879
+ exclude: ["sales_channel", "actions"]
880
+ });
881
+ const filters = useOrderTableFilters();
882
+ const { table } = useDataTable({
883
+ data: orders ?? [],
884
+ columns,
885
+ enablePagination: true,
886
+ count,
887
+ pageSize: PAGE_SIZE2,
888
+ prefix: PREFIX
889
+ });
890
+ if (isError) {
891
+ throw error;
892
+ }
893
+ return /* @__PURE__ */ jsxs10(Container9, { className: "divide-y p-0", "data-testid": "store-orders-section", children: [
894
+ /* @__PURE__ */ jsx11(
895
+ "div",
896
+ {
897
+ className: "flex items-center justify-between px-6 py-4",
898
+ "data-testid": "store-orders-section-header",
899
+ children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-orders-section-heading", children: t("orders.domain") })
900
+ }
901
+ ),
902
+ /* @__PURE__ */ jsx11(
903
+ _DataTable,
904
+ {
905
+ columns,
906
+ table,
907
+ pagination: true,
908
+ navigateTo: (row) => `/orders/${row.original.id}`,
909
+ filters,
910
+ count,
911
+ isLoading,
912
+ pageSize: PAGE_SIZE2,
913
+ orderBy: [
914
+ { key: "display_id", label: t("orders.fields.displayId") },
915
+ { key: "created_at", label: t("fields.createdAt") },
916
+ { key: "updated_at", label: t("fields.updatedAt") }
917
+ ],
918
+ search: true,
919
+ queryObject: raw,
920
+ prefix: PREFIX,
921
+ noRecords: {
922
+ message: t("orders.list.noRecordsMessage")
923
+ }
924
+ }
925
+ )
926
+ ] });
927
+ };
928
+
929
+ // src/pages/stores/store-details/components/store-products-section.tsx
930
+ import { Container as Container10, Heading as Heading10 } from "@medusajs/ui";
931
+ import { keepPreviousData as keepPreviousData3 } from "@tanstack/react-query";
932
+ import { useTranslation as useTranslation12 } from "react-i18next";
933
+ import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
934
+ var PAGE_SIZE3 = 10;
935
+ var PREFIX2 = "store-products";
936
+ var StoreProductsSection = ({
937
+ sellerId
938
+ }) => {
939
+ const { t } = useTranslation12();
940
+ const { searchParams, raw } = useProductTableQuery({
941
+ pageSize: PAGE_SIZE3,
942
+ prefix: PREFIX2
943
+ });
944
+ const { products, count, isPending, isError, error } = useSellerProducts(
945
+ sellerId,
946
+ searchParams,
947
+ {
948
+ placeholderData: keepPreviousData3
949
+ }
950
+ );
951
+ const columns = useProductTableColumns();
952
+ const filters = useProductTableFilters(["product_types"]);
953
+ const { table } = useDataTable({
954
+ columns,
955
+ data: products ?? [],
956
+ count,
957
+ getRowId: (row) => row.id,
958
+ pageSize: PAGE_SIZE3,
959
+ prefix: PREFIX2
960
+ });
961
+ if (isError) {
962
+ throw error;
963
+ }
964
+ return /* @__PURE__ */ jsxs11(Container10, { className: "divide-y p-0", "data-testid": "store-products-section", children: [
965
+ /* @__PURE__ */ jsx12(
966
+ "div",
967
+ {
968
+ className: "flex items-center justify-between px-6 py-4",
969
+ "data-testid": "store-products-section-header",
970
+ children: /* @__PURE__ */ jsx12(Heading10, { level: "h2", "data-testid": "store-products-section-heading", children: t("products.domain") })
971
+ }
972
+ ),
973
+ /* @__PURE__ */ jsx12(
974
+ _DataTable,
975
+ {
976
+ table,
977
+ filters,
978
+ isLoading: isPending,
979
+ columns,
980
+ count,
981
+ pageSize: PAGE_SIZE3,
982
+ navigateTo: ({ original }) => `/products/${original.id}`,
983
+ orderBy: [
984
+ { key: "title", label: t("fields.title") },
985
+ { key: "created_at", label: t("fields.createdAt") },
986
+ { key: "updated_at", label: t("fields.updatedAt") }
987
+ ],
988
+ queryObject: raw,
989
+ search: true,
990
+ pagination: true,
991
+ prefix: PREFIX2,
992
+ noRecords: {
993
+ message: t("products.list.noRecordsMessage")
994
+ }
995
+ }
996
+ )
997
+ ] });
817
998
  };
818
999
 
819
1000
  // src/pages/stores/store-details/components/store-details.tsx
820
- import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
821
- var TABS = [{ value: "users", label: "Users" }];
1001
+ import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
1002
+ var TABS = ["orders", "users", "products", "timeOff"];
822
1003
  var TabBar = ({
823
1004
  activeTab,
824
1005
  onTabChange
825
1006
  }) => {
826
- return /* @__PURE__ */ jsx11("div", { className: "flex items-center gap-x-3 py-2", children: TABS.map((tab) => {
827
- const isActive = activeTab === tab.value;
828
- return /* @__PURE__ */ jsx11(
829
- "button",
830
- {
831
- onClick: () => onTabChange(tab.value),
832
- className: `txt-compact-medium-plus rounded-full px-4 py-1.5 transition-colors ${isActive ? "border-ui-border-base bg-ui-bg-base shadow-borders-base text-ui-fg-base" : "text-ui-fg-subtle hover:text-ui-fg-base"}`,
833
- children: tab.label
834
- },
835
- tab.value
836
- );
837
- }) });
1007
+ const { t } = useTranslation13();
1008
+ const labels = {
1009
+ orders: t("orders.domain"),
1010
+ users: t("users.domain"),
1011
+ products: t("products.domain"),
1012
+ timeOff: t("store.timeOff.header")
1013
+ };
1014
+ return /* @__PURE__ */ jsx13(
1015
+ "div",
1016
+ {
1017
+ role: "tablist",
1018
+ "aria-label": t("stores.domain"),
1019
+ className: "flex flex-wrap items-center gap-x-3 py-2",
1020
+ "data-testid": "store-detail-tabs",
1021
+ children: TABS.map((tab) => {
1022
+ const isActive = activeTab === tab;
1023
+ return /* @__PURE__ */ jsx13(
1024
+ "button",
1025
+ {
1026
+ type: "button",
1027
+ onClick: () => onTabChange(tab),
1028
+ role: "tab",
1029
+ "aria-selected": isActive,
1030
+ "aria-controls": `store-detail-tab-panel-${tab}`,
1031
+ id: `store-detail-tab-${tab}`,
1032
+ "data-testid": `store-detail-tab-${tab}`,
1033
+ className: `txt-compact-medium-plus rounded-full px-4 py-1.5 transition-colors ${isActive ? "border-ui-border-base bg-ui-bg-base shadow-borders-base text-ui-fg-base" : "text-ui-fg-subtle hover:text-ui-fg-base"}`,
1034
+ children: labels[tab]
1035
+ },
1036
+ tab
1037
+ );
1038
+ })
1039
+ }
1040
+ );
838
1041
  };
839
1042
  var Root = ({ children }) => {
840
1043
  const { id } = useParams();
841
- const [activeTab, setActiveTab] = useState2("users");
1044
+ const [activeTab, setActiveTab] = useState2("orders");
842
1045
  const { seller, isLoading, isError, error } = useSeller(id);
843
1046
  if (isLoading || !seller) {
844
- return /* @__PURE__ */ jsx11(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 3 });
1047
+ return /* @__PURE__ */ jsx13(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 3 });
845
1048
  }
846
1049
  if (isError) {
847
1050
  throw error;
848
1051
  }
849
1052
  if (Children3.count(children) > 0) {
850
- return /* @__PURE__ */ jsx11(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children });
1053
+ return /* @__PURE__ */ jsx13(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children });
851
1054
  }
852
- return /* @__PURE__ */ jsxs10(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
853
- /* @__PURE__ */ jsxs10(TwoColumnPage.Main, { children: [
854
- seller.status === import_types3.SellerStatus.PENDING_APPROVAL && /* @__PURE__ */ jsx11(StoreRequestSection, { seller }),
855
- /* @__PURE__ */ jsx11(StoreGeneralSection, { seller }),
856
- /* @__PURE__ */ jsx11(TabBar, { activeTab, onTabChange: setActiveTab }),
857
- activeTab === "users" && /* @__PURE__ */ jsx11(StoreMembersSection, { sellerId: seller.id })
1055
+ return /* @__PURE__ */ jsxs12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
1056
+ /* @__PURE__ */ jsxs12(TwoColumnPage.Main, { children: [
1057
+ seller.status === import_types3.SellerStatus.PENDING_APPROVAL && /* @__PURE__ */ jsx13(StoreRequestSection, { seller }),
1058
+ /* @__PURE__ */ jsx13(StoreGeneralSection, { seller }),
1059
+ /* @__PURE__ */ jsx13(TabBar, { activeTab, onTabChange: setActiveTab }),
1060
+ activeTab === "orders" && /* @__PURE__ */ jsx13(
1061
+ "div",
1062
+ {
1063
+ role: "tabpanel",
1064
+ id: "store-detail-tab-panel-orders",
1065
+ "aria-labelledby": "store-detail-tab-orders",
1066
+ children: /* @__PURE__ */ jsx13(StoreOrdersSection, { sellerId: seller.id })
1067
+ }
1068
+ ),
1069
+ activeTab === "users" && /* @__PURE__ */ jsx13(
1070
+ "div",
1071
+ {
1072
+ role: "tabpanel",
1073
+ id: "store-detail-tab-panel-users",
1074
+ "aria-labelledby": "store-detail-tab-users",
1075
+ children: /* @__PURE__ */ jsx13(StoreMembersSection, { sellerId: seller.id })
1076
+ }
1077
+ ),
1078
+ activeTab === "products" && /* @__PURE__ */ jsx13(
1079
+ "div",
1080
+ {
1081
+ role: "tabpanel",
1082
+ id: "store-detail-tab-panel-products",
1083
+ "aria-labelledby": "store-detail-tab-products",
1084
+ children: /* @__PURE__ */ jsx13(StoreProductsSection, { sellerId: seller.id })
1085
+ }
1086
+ ),
1087
+ activeTab === "timeOff" && /* @__PURE__ */ jsx13(
1088
+ "div",
1089
+ {
1090
+ role: "tabpanel",
1091
+ id: "store-detail-tab-panel-timeOff",
1092
+ "aria-labelledby": "store-detail-tab-timeOff",
1093
+ children: /* @__PURE__ */ jsx13(StoreConfigurationSection, { seller })
1094
+ }
1095
+ )
858
1096
  ] }),
859
- /* @__PURE__ */ jsxs10(TwoColumnPage.Sidebar, { children: [
860
- /* @__PURE__ */ jsx11(StoreConfigurationSection, { seller }),
861
- /* @__PURE__ */ jsx11(StoreAddressSection, { seller }),
862
- /* @__PURE__ */ jsx11(StoreCompanyDetailsSection, { seller }),
863
- /* @__PURE__ */ jsx11(StorePaymentDetailsSection, { seller }),
864
- /* @__PURE__ */ jsx11(StoreSubscriptionSection, { seller })
1097
+ /* @__PURE__ */ jsxs12(TwoColumnPage.Sidebar, { children: [
1098
+ /* @__PURE__ */ jsx13(StoreAddressSection, { seller }),
1099
+ /* @__PURE__ */ jsx13(StoreCompanyDetailsSection, { seller }),
1100
+ /* @__PURE__ */ jsx13(StorePaymentDetailsSection, { seller }),
1101
+ /* @__PURE__ */ jsx13(StoreSubscriptionSection, { seller })
865
1102
  ] })
866
1103
  ] });
867
1104
  };
@@ -869,9 +1106,9 @@ var StoreDetailPage = Object.assign(Root, {
869
1106
  Main: TwoColumnPage.Main,
870
1107
  Sidebar: TwoColumnPage.Sidebar,
871
1108
  MainGeneralSection: StoreGeneralSection,
1109
+ MainConfigurationSection: StoreConfigurationSection,
872
1110
  MainPaymentDetailsSection: StorePaymentDetailsSection,
873
1111
  MainCompanyDetailsSection: StoreCompanyDetailsSection,
874
- SidebarConfigurationSection: StoreConfigurationSection,
875
1112
  SidebarAddressSection: StoreAddressSection,
876
1113
  SidebarSubscriptionSection: StoreSubscriptionSection,
877
1114
  SidebarMembersSection: StoreMembersSection,