@mercurjs/admin 2.2.0-canary.38 → 2.2.0-canary.39

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 (152) hide show
  1. package/dist/{add-campaign-promotions-FWYK3JCR.js → add-campaign-promotions-NT4LQZQJ.js} +3 -3
  2. package/dist/{adjust-inventory-TECW4NNX.js → adjust-inventory-X45NEQFK.js} +1 -1
  3. package/dist/{api-key-management-detail-2LYSINFY.js → api-key-management-detail-HKNZPPR2.js} +3 -4
  4. package/dist/{api-key-management-sales-channels-EEM7UDTZ.js → api-key-management-sales-channels-4GLVMHU6.js} +1 -2
  5. package/dist/{attribute-create-HSR7XVKG.js → attribute-create-D4RUU5OT.js} +1 -1
  6. package/dist/{attribute-detail-7EBAQ26V.js → attribute-detail-OU6557XI.js} +10 -1
  7. package/dist/{attribute-list-G73VHMFA.js → attribute-list-5LGYNGO7.js} +1 -1
  8. package/dist/{breadcrumb-DZTALOFP.js → breadcrumb-GHBR74WM.js} +2 -2
  9. package/dist/{breadcrumb-EPNBJF4V.js → breadcrumb-IEEJTH47.js} +1 -1
  10. package/dist/{campaign-detail-I6KGCHUL.js → campaign-detail-EHNTH6A7.js} +5 -5
  11. package/dist/{categories-metadata-SWFS4FL4.js → categories-metadata-EKY6TSUK.js} +1 -1
  12. package/dist/{category-detail-ZEOXQF7F.js → category-detail-HCRJDDA2.js} +1 -1
  13. package/dist/{category-products-UFKHB7YL.js → category-products-LZQATT5Z.js} +1 -1
  14. package/dist/{chunk-6FNIEKSN.js → chunk-325DZAT2.js} +1 -1
  15. package/dist/{chunk-IRX6RBTE.js → chunk-3SHHDCA6.js} +2 -2
  16. package/dist/{chunk-CB7DBYH4.js → chunk-4C7L7TJT.js} +1 -13
  17. package/dist/{chunk-Y5JQAKX7.js → chunk-4NAIC6RG.js} +1 -1
  18. package/dist/{chunk-4JUT54KO.js → chunk-73Y6HKIG.js} +1 -1
  19. package/dist/{chunk-RWAEZQCV.js → chunk-7OKYEA6I.js} +96 -6
  20. package/dist/{chunk-72SDBLWQ.js → chunk-7TWARCNU.js} +1 -1
  21. package/dist/{chunk-VPPUFVFJ.js → chunk-AVATBB62.js} +2 -1
  22. package/dist/{chunk-NS3GQ2J6.js → chunk-BILFRATX.js} +0 -9
  23. package/dist/{chunk-NKV5XPNS.js → chunk-BO4V6CQN.js} +1 -2
  24. package/dist/{chunk-FBDAKD4B.js → chunk-CN4FCZPK.js} +1 -1
  25. package/dist/{chunk-SIOKPEVN.js → chunk-EUXCKJPT.js} +1 -1
  26. package/dist/{chunk-TAM24IMD.js → chunk-FLPKTLXN.js} +1 -1
  27. package/dist/{chunk-OI4DJXUL.js → chunk-FMJBQE56.js} +1 -1
  28. package/dist/{chunk-ZHT3Y47H.js → chunk-FNJEXQ2Z.js} +1 -1
  29. package/dist/{chunk-EJYLSQVT.js → chunk-FZPSX44L.js} +1 -1
  30. package/dist/{chunk-TG5BBZ3B.js → chunk-HI7NZVSJ.js} +1 -1
  31. package/dist/{chunk-S6A4FVM2.js → chunk-IWBQZK6E.js} +0 -4
  32. package/dist/{chunk-LBLWPBST.js → chunk-IZDTQFCP.js} +3 -1
  33. package/dist/{chunk-PNZI5C5A.js → chunk-LZEEPVQY.js} +59 -55
  34. package/dist/{chunk-7DHSWPU2.js → chunk-PRSTCHB5.js} +1 -1
  35. package/dist/{chunk-45O5MFCT.js → chunk-PSGHE5YJ.js} +1 -1
  36. package/dist/{chunk-3OD3YOA3.js → chunk-RIURQMDE.js} +1 -1
  37. package/dist/{chunk-THNFAN23.js → chunk-VGXJXU7X.js} +1 -1
  38. package/dist/{offers-3HP7SICL.js → chunk-VSLKILOI.js} +124 -253
  39. package/dist/{chunk-QAWWIM4I.js → chunk-WKR3Y2KD.js} +1 -1
  40. package/dist/{chunk-CIKPTKSX.js → chunk-WNTHKSLS.js} +1 -1
  41. package/dist/{chunk-KRECA22N.js → chunk-YUUDST4E.js} +1 -1
  42. package/dist/{chunk-ZPEMWHUW.js → chunk-ZO3OJ2UQ.js} +1 -1
  43. package/dist/{collection-add-products-MJYMPNLP.js → collection-add-products-QIEQCILA.js} +1 -1
  44. package/dist/{collection-detail-C4ZCH55B.js → collection-detail-PTVRSXT3.js} +1 -1
  45. package/dist/{collection-list-4UX2LLQV.js → collection-list-O5XBGFTN.js} +2 -2
  46. package/dist/{collection-metadata-UEYHULPR.js → collection-metadata-TOHJL5WW.js} +1 -1
  47. package/dist/{commission-rule-detail-RO5KXLGT.js → commission-rule-detail-VTP2JKEG.js} +3 -3
  48. package/dist/{commissions-list-MZY7KOP5.js → commissions-list-T7735Y35.js} +3 -3
  49. package/dist/{customer-detail-FRGVVWTZ.js → customer-detail-IPM3SBHE.js} +4 -4
  50. package/dist/{customer-group-detail-KIC2TWZ3.js → customer-group-detail-3HV3BJOU.js} +1 -1
  51. package/dist/{customer-group-list-BRH6SWRD.js → customer-group-list-IR6CW36P.js} +3 -3
  52. package/dist/{customer-group-metadata-S6NJRGYO.js → customer-group-metadata-4W32YXXP.js} +1 -1
  53. package/dist/{customer-metadata-C66G3AS7.js → customer-metadata-L622ZJ43.js} +1 -1
  54. package/dist/{customers-add-customer-group-C4Y6P45C.js → customers-add-customer-group-PWKJZJBP.js} +2 -2
  55. package/dist/{edit-inventory-item-IIJH26PK.js → edit-inventory-item-73BY4I5T.js} +1 -1
  56. package/dist/{edit-inventory-item-attributes-KTMOGG4V.js → edit-inventory-item-attributes-ZMB343AB.js} +1 -1
  57. package/dist/{edit-rules-WOQNXKZZ.js → edit-rules-OK44K33O.js} +1 -1
  58. package/dist/index.css +3 -0
  59. package/dist/index.js +146 -146
  60. package/dist/{inventory-create-M3YBQVNG.js → inventory-create-66YM6FST.js} +1 -1
  61. package/dist/{inventory-detail-6PAVKSOK.js → inventory-detail-RYFIUKTJ.js} +1 -1
  62. package/dist/{inventory-metadata-OS6KHY52.js → inventory-metadata-W6Z6J2Z2.js} +1 -1
  63. package/dist/{inventory-stock-XQWWFVQ3.js → inventory-stock-A3TSIGMD.js} +1 -1
  64. package/dist/loader-HRFMJ5TM.js +36 -0
  65. package/dist/{loader-P2HT7LSL.js → loader-TIPLOZF7.js} +2 -2
  66. package/dist/{location-detail-LK736WHY.js → location-detail-CNETNX3M.js} +1 -1
  67. package/dist/{location-fulfillment-providers-Z3PR4MQI.js → location-fulfillment-providers-TMPZH2KQ.js} +2 -2
  68. package/dist/{location-list-HFVPD3JF.js → location-list-RHUT7IRA.js} +1 -1
  69. package/dist/{location-sales-channels-WZJ3JWQF.js → location-sales-channels-ZQBQ3VDH.js} +1 -2
  70. package/dist/{location-service-zone-shipping-option-create-NFKZT2HM.js → location-service-zone-shipping-option-create-3PQ2EYD7.js} +1 -1
  71. package/dist/{login-IOW5R2ZZ.js → login-OKBXMSKY.js} +1 -1
  72. package/dist/{marketplace-detail-X5AQWO7P.js → marketplace-detail-KBJSCI2N.js} +1 -1
  73. package/dist/{marketplace-metadata-RNNA4S3F.js → marketplace-metadata-VXFQ3JZW.js} +1 -1
  74. package/dist/{offer-detail-page-4GNU35AH.js → offer-detail-page-D3J547CC.js} +134 -121
  75. package/dist/{offer-variant-detail-page-FFPV7N7Y.js → offer-variant-detail-page-P4CKF442.js} +4 -4
  76. package/dist/offers-7JTHN6FI.js +183 -0
  77. package/dist/{order-create-claim-MEXSDGHW.js → order-create-claim-CHXOZH2C.js} +3 -3
  78. package/dist/{order-create-edit-M2F6CG3M.js → order-create-edit-O4AOAOF7.js} +3 -3
  79. package/dist/{order-create-exchange-HTWFKJOM.js → order-create-exchange-CG3ODKTK.js} +4 -4
  80. package/dist/{order-create-refund-DWIGXSYJ.js → order-create-refund-4ZO73NWS.js} +1 -1
  81. package/dist/{order-detail-QYZGM7OO.js → order-detail-V6AL4RWB.js} +1 -1
  82. package/dist/{order-edit-billing-address-JHJ7PCPC.js → order-edit-billing-address-KVX4EPM7.js} +2 -2
  83. package/dist/{order-edit-email-OAU3YX45.js → order-edit-email-GLAQZCIT.js} +1 -1
  84. package/dist/{order-edit-shipping-address-RAO5IKGM.js → order-edit-shipping-address-PF54SFAG.js} +1 -1
  85. package/dist/{order-list-5PVFAFJT.js → order-list-WHZJ6B4G.js} +3 -3
  86. package/dist/{order-metadata-IUBTCJQW.js → order-metadata-L6SCT4MO.js} +1 -1
  87. package/dist/{order-request-transfer-2J4CN5JP.js → order-request-transfer-BLQQ66IF.js} +1 -1
  88. package/dist/pages/index.d.ts +9 -9
  89. package/dist/pages/index.js +27 -26
  90. package/dist/{price-list-configuration-BIHWXMYS.js → price-list-configuration-OTSYJ3AQ.js} +3 -3
  91. package/dist/{price-list-create-XV6OY4A2.js → price-list-create-2422HUBU.js} +4 -4
  92. package/dist/{price-list-detail-IUZU5OA7.js → price-list-detail-CL3FMPVN.js} +1 -1
  93. package/dist/{price-list-prices-add-KUBO4DCC.js → price-list-prices-add-OOG6526Y.js} +1 -1
  94. package/dist/{price-list-prices-edit-PJ4CPB5I.js → price-list-prices-edit-ZQE3Z3NK.js} +1 -1
  95. package/dist/{product-add-existing-attributes-3BJ5KV2V.js → product-add-existing-attributes-DKKPTZMB.js} +1 -1
  96. package/dist/{product-create-EGL6UJKX.js → product-create-IX4TOFNU.js} +4 -4
  97. package/dist/{product-detail-SNS2DQ6Q.js → product-detail-BLZYOXLS.js} +2 -2
  98. package/dist/{product-list-LGS3O2OJ.js → product-list-PLXUL3YW.js} +1 -1
  99. package/dist/{product-media-JKUDYI32.js → product-media-TDEPDO3W.js} +2 -2
  100. package/dist/{product-metadata-4O5YDITE.js → product-metadata-KBT4QGRF.js} +1 -1
  101. package/dist/{product-organization-AIM3LNQ6.js → product-organization-HFC44AOV.js} +1 -1
  102. package/dist/{product-sales-channels-73JEGJIY.js → product-sales-channels-C6UUHWGB.js} +1 -2
  103. package/dist/{product-tag-create-PSLHVOED.js → product-tag-create-AHG3Y4GE.js} +1 -1
  104. package/dist/{product-tag-detail-MI7B2MPH.js → product-tag-detail-222RARIO.js} +2 -2
  105. package/dist/{product-tag-edit-7RYZN7ZP.js → product-tag-edit-ACHNVZZP.js} +1 -1
  106. package/dist/{product-tag-list-7CE4KJ3G.js → product-tag-list-EZ4JUW4U.js} +2 -2
  107. package/dist/{product-tag-metadata-Z26DWSRN.js → product-tag-metadata-4EUBENJ6.js} +1 -1
  108. package/dist/{product-type-detail-O2WGGFRT.js → product-type-detail-SSMTOG47.js} +1 -1
  109. package/dist/{product-type-metadata-2YKEGWRE.js → product-type-metadata-RAVB4BK2.js} +1 -1
  110. package/dist/{product-variant-detail-OZYQPDVX.js → product-variant-detail-7CFNAI3A.js} +1 -1
  111. package/dist/{product-variant-edit-M74OAUM5.js → product-variant-edit-QJK2CLID.js} +1 -1
  112. package/dist/{product-variant-metadata-VA4NDA53.js → product-variant-metadata-7VHJ4U6L.js} +1 -1
  113. package/dist/{promotion-create-TOOHWR6S.js → promotion-create-AWZ7YA5T.js} +1 -1
  114. package/dist/{promotion-detail-WFB2ZFPH.js → promotion-detail-EEDQ3GQD.js} +4 -4
  115. package/dist/{promotion-list-VLCRCI2K.js → promotion-list-SXUXYV6R.js} +4 -4
  116. package/dist/{refund-reason-create-NA42SWWI.js → refund-reason-create-UA3XS6DP.js} +1 -1
  117. package/dist/{refund-reason-edit-WMKHZ6SN.js → refund-reason-edit-3TAGKV3U.js} +1 -1
  118. package/dist/{refund-reason-list-XMDZO34F.js → refund-reason-list-OVTNXVLP.js} +1 -1
  119. package/dist/{region-metadata-GWN4DS4V.js → region-metadata-3KASKFZ3.js} +1 -1
  120. package/dist/{reservation-detail-JSLACR7K.js → reservation-detail-MAWHNY2H.js} +1 -1
  121. package/dist/{reservation-metadata-YNCMFQIX.js → reservation-metadata-ENY4V2ED.js} +1 -1
  122. package/dist/{reset-password-OL6EA5F2.js → reset-password-UIDUOHVW.js} +1 -1
  123. package/dist/{sales-channel-add-products-ZZPVF5CH.js → sales-channel-add-products-ZCUVTJQN.js} +1 -1
  124. package/dist/{sales-channel-detail-DNZXUBSN.js → sales-channel-detail-EZVCWMMS.js} +1 -1
  125. package/dist/{sales-channel-list-PPESHWHA.js → sales-channel-list-LVW7XE7K.js} +3 -4
  126. package/dist/{sales-channel-metadata-7HVLURGB.js → sales-channel-metadata-RXC4IDD3.js} +1 -1
  127. package/dist/{shipping-option-type-create-UFXLX52L.js → shipping-option-type-create-GHOCZT64.js} +1 -1
  128. package/dist/{shipping-option-type-detail-OCOL5H4I.js → shipping-option-type-detail-W32EHTBS.js} +1 -1
  129. package/dist/{shipping-option-type-edit-2WVBG2XS.js → shipping-option-type-edit-KRIP6HTC.js} +1 -1
  130. package/dist/{shipping-option-type-list-AW2ZA4V5.js → shipping-option-type-list-Y43XD2XM.js} +1 -1
  131. package/dist/{shipping-profile-metadata-N2AXNBZT.js → shipping-profile-metadata-HMQZ6LGB.js} +1 -1
  132. package/dist/{store-address-edit-KITVKFMG.js → store-address-edit-B4LWVP73.js} +1 -1
  133. package/dist/{store-bulk-edit-SZ3UEDWJ.js → store-bulk-edit-IXWGUFY2.js} +1 -1
  134. package/dist/{store-closure-edit-MMGDJGV3.js → store-closure-edit-H3EKROXP.js} +1 -1
  135. package/dist/{store-create-QUGCV5IG.js → store-create-PL2XGIR5.js} +1 -1
  136. package/dist/{store-details-4XVEWNIX.js → store-details-4DAUF3CD.js} +4 -4
  137. package/dist/{store-edit-KJTO3ZUP.js → store-edit-ESFC2UXE.js} +3 -3
  138. package/dist/{store-list-LSADPRI2.js → store-list-KANREHW5.js} +3 -3
  139. package/dist/{store-member-invite-3G4PCBJ2.js → store-member-invite-U4UQS5VC.js} +1 -1
  140. package/dist/{store-payment-details-edit-5LT4OIMA.js → store-payment-details-edit-ERRJDLBO.js} +1 -1
  141. package/dist/{store-professional-details-edit-ARR5WRGC.js → store-professional-details-edit-VD2J4VYV.js} +1 -1
  142. package/dist/{tax-region-create-MPKY5KXL.js → tax-region-create-4YEJ3HFY.js} +2 -2
  143. package/dist/{tax-region-detail-Q3NZI26Z.js → tax-region-detail-L7STT6C7.js} +1 -1
  144. package/dist/{tax-region-edit-UMPFELDL.js → tax-region-edit-6JOV3POI.js} +1 -1
  145. package/dist/{tax-region-metadata-UAGL3HYV.js → tax-region-metadata-N3QNTXME.js} +1 -1
  146. package/dist/{tax-region-province-detail-JQQQXONY.js → tax-region-province-detail-2GRPOSWS.js} +1 -1
  147. package/dist/{tax-region-tax-override-create-X3WQVHYV.js → tax-region-tax-override-create-JZHOHCXF.js} +2 -2
  148. package/dist/{tax-region-tax-override-edit-SYK2O5BK.js → tax-region-tax-override-edit-SZRD23P4.js} +2 -2
  149. package/dist/{user-metadata-EKIWOTII.js → user-metadata-BD73LJWB.js} +1 -1
  150. package/package.json +6 -6
  151. package/dist/chunk-DGCPYCHU.js +0 -98
  152. package/dist/loader-DHCULYGY.js +0 -32
@@ -4,9 +4,18 @@ import {
4
4
  import {
5
5
  IconAvatar
6
6
  } from "./chunk-U2EI2ZLM.js";
7
+ import {
8
+ useOfferTableColumns,
9
+ useOfferTableCommands,
10
+ useOfferTableFilters,
11
+ useOfferTableQuery
12
+ } from "./chunk-VSLKILOI.js";
7
13
  import {
8
14
  useOrderTableFilters
9
15
  } from "./chunk-4BCUGMOR.js";
16
+ import {
17
+ useOffers
18
+ } from "./chunk-IZDTQFCP.js";
10
19
  import {
11
20
  useMemberTableQuery
12
21
  } from "./chunk-WKTRJNOK.js";
@@ -19,15 +28,6 @@ import {
19
28
  import {
20
29
  DataTableStatusCell
21
30
  } from "./chunk-MDABSESI.js";
22
- import {
23
- useProductTableColumns
24
- } from "./chunk-O53E5U52.js";
25
- import {
26
- useProductTableFilters
27
- } from "./chunk-P4LTLPTK.js";
28
- import {
29
- useProductTableQuery
30
- } from "./chunk-H7NIKMPE.js";
31
31
  import {
32
32
  currencies
33
33
  } from "./chunk-IQPN4PZJ.js";
@@ -55,9 +55,8 @@ import {
55
55
  useSeller,
56
56
  useSellerInvites,
57
57
  useSellerMembers,
58
- useSellerProducts,
59
58
  useSuspendSeller
60
- } from "./chunk-NS3GQ2J6.js";
59
+ } from "./chunk-BILFRATX.js";
61
60
  import {
62
61
  ActionMenu
63
62
  } from "./chunk-BDGZ4EQO.js";
@@ -69,7 +68,7 @@ import {
69
68
  } from "./chunk-NBMM2TZK.js";
70
69
 
71
70
  // src/pages/stores/store-details/components/store-details.tsx
72
- import { Children as Children3, useState as useState2 } from "react";
71
+ import { Children as Children3, useState as useState3 } from "react";
73
72
  import { useParams } from "react-router-dom";
74
73
  import { useTranslation as useTranslation12 } from "react-i18next";
75
74
  var import_types3 = __toESM(require_dist(), 1);
@@ -975,78 +974,83 @@ var StoreOrdersSection = ({ sellerId }) => {
975
974
  ] });
976
975
  };
977
976
 
978
- // src/pages/stores/store-details/components/store-products-section.tsx
977
+ // src/pages/stores/store-details/components/store-offers-section.tsx
979
978
  import { Tag } from "@medusajs/icons";
980
979
  import { Container as Container9, Heading as Heading9 } from "@medusajs/ui";
981
980
  import { keepPreviousData as keepPreviousData3 } from "@tanstack/react-query";
981
+ import { useState as useState2 } from "react";
982
982
  import { useTranslation as useTranslation11 } from "react-i18next";
983
983
  import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
984
984
  var PAGE_SIZE3 = 10;
985
- var PREFIX2 = "store-products";
986
- var StoreProductsSection = ({
987
- sellerId
988
- }) => {
985
+ var PREFIX2 = "store-offers";
986
+ var StoreOffersSection = ({ sellerId }) => {
989
987
  const { t } = useTranslation11();
990
- const { searchParams, raw } = useProductTableQuery({
988
+ const [selection, setSelection] = useState2({});
989
+ const { raw, searchParams } = useOfferTableQuery({
991
990
  pageSize: PAGE_SIZE3,
992
991
  prefix: PREFIX2
993
992
  });
994
- const { products, count, isPending, isError, error } = useSellerProducts(
995
- sellerId,
996
- searchParams,
997
- {
998
- placeholderData: keepPreviousData3
999
- }
993
+ const { offers, count, isLoading, isError, error } = useOffers(
994
+ { ...searchParams, seller_id: [sellerId] },
995
+ { placeholderData: keepPreviousData3 }
1000
996
  );
1001
- const columns = useProductTableColumns();
1002
- const filters = useProductTableFilters(["product_types"]);
997
+ const rows = offers ?? [];
998
+ const columns = useOfferTableColumns({ hideStoreAction: true });
999
+ const filters = useOfferTableFilters().filter((f) => f.key !== "seller_id");
1000
+ const commands = useOfferTableCommands({
1001
+ onDeleted: () => setSelection({})
1002
+ });
1003
1003
  const { table } = useDataTable({
1004
+ data: rows,
1004
1005
  columns,
1005
- data: products ?? [],
1006
1006
  count,
1007
+ enablePagination: true,
1007
1008
  getRowId: (row) => row.id,
1008
1009
  pageSize: PAGE_SIZE3,
1009
- prefix: PREFIX2
1010
+ prefix: PREFIX2,
1011
+ enableRowSelection: true,
1012
+ rowSelection: {
1013
+ state: selection,
1014
+ updater: setSelection
1015
+ }
1010
1016
  });
1011
1017
  if (isError) {
1012
1018
  throw error;
1013
1019
  }
1014
- return /* @__PURE__ */ jsxs11(Container9, { className: "divide-y p-0", "data-testid": "store-products-section", children: [
1020
+ return /* @__PURE__ */ jsxs11(Container9, { className: "divide-y p-0", "data-testid": "store-offers-section", children: [
1015
1021
  /* @__PURE__ */ jsx11(
1016
1022
  "div",
1017
1023
  {
1018
1024
  className: "flex items-center justify-between px-6 py-4",
1019
- "data-testid": "store-products-section-header",
1020
- children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-products-section-heading", children: t("products.domain") })
1025
+ "data-testid": "store-offers-section-header",
1026
+ children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-offers-section-heading", children: t("offers.domain") })
1021
1027
  }
1022
1028
  ),
1023
1029
  /* @__PURE__ */ jsx11(
1024
1030
  _DataTable,
1025
1031
  {
1026
1032
  table,
1027
- filters,
1028
- isLoading: isPending,
1029
1033
  columns,
1030
- count,
1031
1034
  pageSize: PAGE_SIZE3,
1032
- navigateTo: ({ original }) => `/products/${original.id}`,
1035
+ count,
1036
+ isLoading,
1037
+ pagination: true,
1038
+ search: true,
1039
+ filters,
1040
+ queryObject: raw,
1041
+ prefix: PREFIX2,
1033
1042
  orderBy: [
1034
- { key: "title", label: t("fields.title") },
1035
1043
  { key: "created_at", label: t("fields.createdAt") },
1036
1044
  { key: "updated_at", label: t("fields.updatedAt") }
1037
1045
  ],
1038
- queryObject: raw,
1039
- search: true,
1040
- pagination: true,
1041
- prefix: PREFIX2,
1046
+ defaultOrder: "-created_at",
1047
+ navigateTo: (row) => `/offers/${row.original.product_id}?seller_id=${row.original.seller_id}`,
1042
1048
  noRecords: {
1043
- title: t("stores.emptyStates.products.title", "No products yet"),
1044
- message: t(
1045
- "stores.emptyStates.products.message",
1046
- "Products published by this store will appear here."
1047
- ),
1049
+ title: t("offers.empty.heading"),
1050
+ message: t("offers.empty.storeDescription"),
1048
1051
  icon: /* @__PURE__ */ jsx11(Tag, { className: "text-ui-fg-subtle" })
1049
- }
1052
+ },
1053
+ commands
1050
1054
  }
1051
1055
  )
1052
1056
  ] });
@@ -1054,7 +1058,7 @@ var StoreProductsSection = ({
1054
1058
 
1055
1059
  // src/pages/stores/store-details/components/store-details.tsx
1056
1060
  import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
1057
- var TABS = ["orders", "products", "users", "timeOff"];
1061
+ var TABS = ["orders", "offers", "users", "timeOff"];
1058
1062
  var TabBar = ({
1059
1063
  activeTab,
1060
1064
  onTabChange
@@ -1063,7 +1067,7 @@ var TabBar = ({
1063
1067
  const labels = {
1064
1068
  orders: t("orders.domain"),
1065
1069
  users: t("users.domain"),
1066
- products: t("products.domain"),
1070
+ offers: t("offers.domain"),
1067
1071
  timeOff: t("store.timeOff.header")
1068
1072
  };
1069
1073
  return /* @__PURE__ */ jsx12(
@@ -1071,7 +1075,7 @@ var TabBar = ({
1071
1075
  {
1072
1076
  role: "tablist",
1073
1077
  "aria-label": t("stores.domain"),
1074
- className: "flex flex-wrap items-center gap-x-3 py-2",
1078
+ className: "mt-1 flex flex-wrap items-center gap-x-2",
1075
1079
  "data-testid": "store-detail-tabs",
1076
1080
  children: TABS.map((tab) => {
1077
1081
  const isActive = activeTab === tab;
@@ -1085,7 +1089,7 @@ var TabBar = ({
1085
1089
  "aria-controls": `store-detail-tab-panel-${tab}`,
1086
1090
  id: `store-detail-tab-${tab}`,
1087
1091
  "data-testid": `store-detail-tab-${tab}`,
1088
- 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"}`,
1092
+ className: `txt-compact-small-plus rounded-full px-3 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"}`,
1089
1093
  children: labels[tab]
1090
1094
  },
1091
1095
  tab
@@ -1096,7 +1100,7 @@ var TabBar = ({
1096
1100
  };
1097
1101
  var Root = ({ children }) => {
1098
1102
  const { id } = useParams();
1099
- const [activeTab, setActiveTab] = useState2("orders");
1103
+ const [activeTab, setActiveTab] = useState3("orders");
1100
1104
  const { seller, isLoading, isError, error } = useSeller(id);
1101
1105
  if (isLoading || !seller) {
1102
1106
  return /* @__PURE__ */ jsx12(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 3 });
@@ -1130,13 +1134,13 @@ var Root = ({ children }) => {
1130
1134
  children: /* @__PURE__ */ jsx12(StoreMembersSection, { sellerId: seller.id })
1131
1135
  }
1132
1136
  ),
1133
- activeTab === "products" && /* @__PURE__ */ jsx12(
1137
+ activeTab === "offers" && /* @__PURE__ */ jsx12(
1134
1138
  "div",
1135
1139
  {
1136
1140
  role: "tabpanel",
1137
- id: "store-detail-tab-panel-products",
1138
- "aria-labelledby": "store-detail-tab-products",
1139
- children: /* @__PURE__ */ jsx12(StoreProductsSection, { sellerId: seller.id })
1141
+ id: "store-detail-tab-panel-offers",
1142
+ "aria-labelledby": "store-detail-tab-offers",
1143
+ children: /* @__PURE__ */ jsx12(StoreOffersSection, { sellerId: seller.id })
1140
1144
  }
1141
1145
  ),
1142
1146
  activeTab === "timeOff" && /* @__PURE__ */ jsx12(
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-G5KNNOXX.js";
7
7
  import {
8
8
  useSellers
9
- } from "./chunk-NS3GQ2J6.js";
9
+ } from "./chunk-BILFRATX.js";
10
10
  import {
11
11
  useProductCategories
12
12
  } from "./chunk-JZJT26E3.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-YZBEJ3CY.js";
23
23
  import {
24
24
  useSellers
25
- } from "./chunk-NS3GQ2J6.js";
25
+ } from "./chunk-BILFRATX.js";
26
26
  import {
27
27
  ActionMenu
28
28
  } from "./chunk-BDGZ4EQO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useOrderGroupTableFilters
3
- } from "./chunk-CB7DBYH4.js";
3
+ } from "./chunk-4C7L7TJT.js";
4
4
  import {
5
5
  useOrderTableQuery
6
6
  } from "./chunk-QUHSHIAC.js";
@@ -11,7 +11,7 @@ import {
11
11
  useSalesChannelTableEmptyState,
12
12
  useSalesChannelTableFilters,
13
13
  useSalesChannelTableQuery
14
- } from "./chunk-RWAEZQCV.js";
14
+ } from "./chunk-7OKYEA6I.js";
15
15
  import {
16
16
  DataTable
17
17
  } from "./chunk-C4XKPQ6T.js";