@mercurjs/admin 2.0.0-canary.39 → 2.0.0-canary.41

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 (200) hide show
  1. package/dist/{add-campaign-promotions-ZUXBF5G3.js → add-campaign-promotions-7TPECJOT.js} +4 -4
  2. package/dist/{api-key-management-detail-SKJNAZ5L.js → api-key-management-detail-2EFDWJSF.js} +7 -7
  3. package/dist/{api-key-management-list-2D4WKI6Y.js → api-key-management-list-UZLHSM2R.js} +6 -5
  4. package/dist/{api-key-management-sales-channels-C7EWPHC2.js → api-key-management-sales-channels-ER5ZINL7.js} +6 -7
  5. package/dist/{campaign-create-B7XM2FZM.js → campaign-create-AFR3V7P4.js} +3 -3
  6. package/dist/{campaign-detail-7U4CQHU5.js → campaign-detail-UUNEZUY7.js} +9 -8
  7. package/dist/{campaign-list-SC7FLTRM.js → campaign-list-2AAGWYEG.js} +6 -5
  8. package/dist/category-create-LY45Z7YB.js +23 -0
  9. package/dist/{category-detail-HGHR3R2R.js → category-detail-AGTIMI6P.js} +7 -6
  10. package/dist/{category-list-QBBFGHQM.js → category-list-ROM7UTA4.js} +6 -5
  11. package/dist/{chunk-ENMRRG4N.js → chunk-2AWQ4FPA.js} +6 -6
  12. package/dist/{chunk-VBAAYYCS.js → chunk-2HPZJCAF.js} +6 -6
  13. package/dist/{chunk-SFG7JTBH.js → chunk-2LAANNMF.js} +111 -48
  14. package/dist/{chunk-KYUXTS2L.js → chunk-2UN7CNBG.js} +7 -7
  15. package/dist/chunk-3LTXCGNM.js +204 -0
  16. package/dist/{chunk-EDQBUWY7.js → chunk-3NIWL75F.js} +6 -6
  17. package/dist/{product-create-variant-CJPECBV4.js → chunk-4UTK7DZN.js} +63 -69
  18. package/dist/{chunk-5VEYNZSW.js → chunk-5322X23U.js} +9 -4
  19. package/dist/{chunk-U3SFHLUA.js → chunk-53IISBJZ.js} +1 -0
  20. package/dist/{chunk-DGCPYCHU.js → chunk-54RTJBYO.js} +63 -8
  21. package/dist/{chunk-E2AAYIHS.js → chunk-5EFOVNK2.js} +3 -3
  22. package/dist/{chunk-NQPAEBSZ.js → chunk-6E3T6CGY.js} +15 -7
  23. package/dist/{chunk-V2DXJ75C.js → chunk-6OA7JZ5E.js} +1 -1
  24. package/dist/chunk-72IQIAGX.js +245 -0
  25. package/dist/{chunk-3IYIS5UZ.js → chunk-7DOPC5GY.js} +4 -4
  26. package/dist/{chunk-Q6XCCONH.js → chunk-AI6RJGRQ.js} +9 -9
  27. package/dist/{price-list-create-OK7YYLAB.js → chunk-AJZQBGE4.js} +193 -428
  28. package/dist/{chunk-XDVS4B7W.js → chunk-BAV6Y7RC.js} +8 -7
  29. package/dist/{chunk-4WYBW3HK.js → chunk-BCAT7P6B.js} +3 -3
  30. package/dist/{chunk-LYT3RI4O.js → chunk-BHYDGWZ6.js} +18 -9
  31. package/dist/{chunk-DK3U2SRA.js → chunk-BIEYPCHL.js} +5 -5
  32. package/dist/{product-create-NVBKO426.js → chunk-BLG726FI.js} +36 -68
  33. package/dist/chunk-BVRI7YAR.js +100 -0
  34. package/dist/{chunk-2IGCU3KP.js → chunk-DOMRLXOI.js} +2 -2
  35. package/dist/{chunk-K6FXWZ2M.js → chunk-F55UXYYA.js} +10 -0
  36. package/dist/{chunk-AOVEX4EM.js → chunk-FNXSMFGL.js} +5 -5
  37. package/dist/{chunk-IXGP2EEN.js → chunk-FYAYHOCN.js} +2 -3
  38. package/dist/{chunk-QBOXELB5.js → chunk-GJHAVFXL.js} +4 -4
  39. package/dist/{price-list-prices-add-7PGUONDK.js → chunk-GOVOSXUU.js} +90 -290
  40. package/dist/{chunk-66IHH2HG.js → chunk-H6W6Q6YE.js} +3 -3
  41. package/dist/{seller-details-KROISMQC.js → chunk-HVLQFQGD.js} +74 -146
  42. package/dist/{chunk-QD6KYDYH.js → chunk-I6R4I7EF.js} +6 -6
  43. package/dist/{chunk-RIMR3ULR.js → chunk-ISYWL6RZ.js} +64 -33
  44. package/dist/{chunk-HHNJNKCB.js → chunk-KMUEJ3IE.js} +59 -20
  45. package/dist/{chunk-GJTIHFXG.js → chunk-KOILMFJX.js} +29 -31
  46. package/dist/{chunk-3SAH3NUS.js → chunk-LIXRNUG5.js} +1 -1
  47. package/dist/chunk-LOJD5572.js +433 -0
  48. package/dist/{chunk-T25UE7SS.js → chunk-MD56QRKC.js} +6 -6
  49. package/dist/{chunk-S4QUEQQK.js → chunk-MSFNMGFD.js} +48 -48
  50. package/dist/{chunk-YH4VQBAA.js → chunk-MX52GGQO.js} +81 -52
  51. package/dist/{chunk-O6O22BN4.js → chunk-N7BCAAJC.js} +113 -48
  52. package/dist/{chunk-JA2XIIIZ.js → chunk-NXKCVD5F.js} +6 -5
  53. package/dist/{chunk-G4QMLQF2.js → chunk-NZN7PFPB.js} +2 -4
  54. package/dist/{chunk-KUDLPUWR.js → chunk-OFWYMU6K.js} +8 -8
  55. package/dist/chunk-OOAY7PAK.js +1155 -0
  56. package/dist/chunk-PAQH5QQH.js +685 -0
  57. package/dist/{chunk-3H74EI2D.js → chunk-POCHIWE2.js} +100 -40
  58. package/dist/chunk-PXBCTPQO.js +248 -0
  59. package/dist/chunk-QSZ2FIM2.js +223 -0
  60. package/dist/{chunk-23663A2W.js → chunk-R5VKVG6S.js} +1 -1
  61. package/dist/{chunk-DP5U3GQU.js → chunk-RXUUBJSZ.js} +1 -1
  62. package/dist/{chunk-FYB5MS4F.js → chunk-S2GARTQU.js} +6 -6
  63. package/dist/{chunk-7TLEUIAL.js → chunk-SO6PXIPV.js} +21 -16
  64. package/dist/{category-create-UWBJGIED.js → chunk-ST74PSEZ.js} +78 -149
  65. package/dist/{chunk-33FUPXJL.js → chunk-T3OYE2MH.js} +4 -4
  66. package/dist/{chunk-JRWB7VWP.js → chunk-U4RMXPGI.js} +8 -8
  67. package/dist/{chunk-YGSM5PVN.js → chunk-UI2BJVP5.js} +1 -1
  68. package/dist/{chunk-FXU7SL6M.js → chunk-UOIUQC3P.js} +25 -15
  69. package/dist/{chunk-ZU2RNSCP.js → chunk-UONTDHRH.js} +4 -2
  70. package/dist/{chunk-J7SR4GW5.js → chunk-V3SHSLK4.js} +4 -4
  71. package/dist/{chunk-TE5VQBCL.js → chunk-V42ZR4XW.js} +8 -9
  72. package/dist/chunk-V5J73NPW.js +117 -0
  73. package/dist/{chunk-QP6XXG6A.js → chunk-VOFAM7HJ.js} +74 -42
  74. package/dist/{chunk-CR4E2DCR.js → chunk-VT3RBTYK.js} +3 -3
  75. package/dist/{chunk-AOVJTW7M.js → chunk-VWQYMOBM.js} +9 -9
  76. package/dist/{chunk-6L2LSIPR.js → chunk-VXAQZ2ZZ.js} +4 -4
  77. package/dist/{chunk-OSHCUDYY.js → chunk-X3KBQBGW.js} +6 -6
  78. package/dist/{chunk-WZADCDDE.js → chunk-X56THFPA.js} +2 -1
  79. package/dist/{chunk-HZKW7HRU.js → chunk-X7NWBH7T.js} +64 -35
  80. package/dist/{chunk-OFRQZHVQ.js → chunk-XE5ZMNUN.js} +6 -6
  81. package/dist/{chunk-4GVHNYZR.js → chunk-XHVYNMTA.js} +2 -2
  82. package/dist/{chunk-U2UCL2VG.js → chunk-XIZLPYEE.js} +3 -111
  83. package/dist/{chunk-KXPCEVFB.js → chunk-XOKRMMVP.js} +6 -6
  84. package/dist/{chunk-XVKRTPVM.js → chunk-Y5N26ZC3.js} +41 -15
  85. package/dist/{chunk-A6Z2Q7D5.js → chunk-Z2MDPTF2.js} +4 -2
  86. package/dist/{chunk-TKGZBTOS.js → chunk-ZFSZTRZ6.js} +54 -32
  87. package/dist/{chunk-RV6NZTNP.js → chunk-ZZEAWVFX.js} +27 -27
  88. package/dist/{collection-detail-YJ3FV2C6.js → collection-detail-SRR3HSIV.js} +7 -6
  89. package/dist/{collection-list-WDQOBHQN.js → collection-list-MKISW5S4.js} +6 -5
  90. package/dist/{commission-rate-detail-UQDIIMIK.js → commission-rate-detail-GLB733F3.js} +5 -4
  91. package/dist/{commission-rate-list-WTDZLKUR.js → commission-rate-list-5V3FQROA.js} +6 -5
  92. package/dist/{customer-detail-N7CS4IJU.js → customer-detail-SBQF232S.js} +4 -3
  93. package/dist/customer-group-add-customers-LCNDTLXR.js +1 -1
  94. package/dist/{customer-group-detail-UCTY4FF7.js → customer-group-detail-QQSNRM2K.js} +6 -5
  95. package/dist/{customer-group-list-XOQ64CVR.js → customer-group-list-IO7SVK3F.js} +15 -6
  96. package/dist/{customer-list-BUUO6OF7.js → customer-list-TXBAME4V.js} +4 -3
  97. package/dist/customers-add-customer-group-BKEV24N2.js +1 -1
  98. package/dist/index.d.ts +225 -16
  99. package/dist/index.js +581 -387
  100. package/dist/inventory-create-Q4JIXZTT.js +56 -0
  101. package/dist/{inventory-detail-BJT5WEV5.js → inventory-detail-3D37JWQT.js} +7 -6
  102. package/dist/{inventory-list-3LWBPWVK.js → inventory-list-WH42ADNB.js} +6 -5
  103. package/dist/{inventory-stock-G3GP4FZX.js → inventory-stock-DTKOGYT7.js} +6 -6
  104. package/dist/{location-detail-N7J6PEAP.js → location-detail-2SSHXSKL.js} +5 -4
  105. package/dist/location-fulfillment-providers-BHCY2MYC.js +1 -1
  106. package/dist/{location-list-UG6B47NP.js → location-list-LPISOSQI.js} +5 -4
  107. package/dist/{location-sales-channels-3IGHCJEN.js → location-sales-channels-PPH53OHD.js} +6 -7
  108. package/dist/location-service-zone-shipping-option-create-GSXLVEGO.js +57 -0
  109. package/dist/{location-service-zone-shipping-option-pricing-7VMPXDWX.js → location-service-zone-shipping-option-pricing-4CTGXBP3.js} +6 -6
  110. package/dist/marketplace-add-currencies-CIGOPBO6.js +1 -1
  111. package/dist/{marketplace-detail-7KJMXXAJ.js → marketplace-detail-3CBLIYVK.js} +6 -5
  112. package/dist/{order-detail-C25NQSZN.js → order-detail-AJV2PE7J.js} +7 -6
  113. package/dist/{order-edit-billing-address-NVRMPZEU.js → order-edit-billing-address-QQUPIC2H.js} +6 -6
  114. package/dist/{order-list-7NH7LROU.js → order-list-VPQOG5WE.js} +6 -5
  115. package/dist/pages/index.d.ts +2608 -82
  116. package/dist/pages/index.js +238 -156
  117. package/dist/{payout-detail-MDD5SRK5.js → payout-detail-PMR26YQI.js} +5 -4
  118. package/dist/{payout-list-XY2A5KYS.js → payout-list-DMG7MQM7.js} +6 -4
  119. package/dist/price-list-configuration-XK3IZLLX.js +1 -1
  120. package/dist/price-list-create-QS6CVEWS.js +76 -0
  121. package/dist/{price-list-detail-IGFSM77P.js → price-list-detail-IO5ZURVW.js} +7 -6
  122. package/dist/{price-list-list-TBXQ5DOS.js → price-list-list-B3FKB46L.js} +6 -5
  123. package/dist/price-list-prices-add-NSAQWBT6.js +71 -0
  124. package/dist/{price-list-prices-edit-QVGBT6AI.js → price-list-prices-edit-UOAIOS5X.js} +6 -6
  125. package/dist/product-create-UVKMOKRF.js +68 -0
  126. package/dist/product-create-variant-TCXDJ425.js +53 -0
  127. package/dist/{product-detail-ZC37BGPC.js → product-detail-273ME23P.js} +4 -4
  128. package/dist/{product-list-635ZXM2D.js → product-list-2ZHLFSBI.js} +5 -4
  129. package/dist/{product-media-ZMDAVPGI.js → product-media-YMFP6Q6A.js} +3 -3
  130. package/dist/{product-prices-WMRIC7WM.js → product-prices-X6JO3Y5A.js} +5 -5
  131. package/dist/{product-sales-channels-LSN5DVWZ.js → product-sales-channels-2PVBPK6W.js} +2 -3
  132. package/dist/{product-stock-HF42WRSC.js → product-stock-ARRFHDSU.js} +6 -6
  133. package/dist/{product-tag-detail-OJLYO3Q5.js → product-tag-detail-545AVFGA.js} +7 -6
  134. package/dist/{product-tag-list-XFHGJBRF.js → product-tag-list-2Y2Q7K3A.js} +7 -6
  135. package/dist/{product-type-detail-J4UA4AEM.js → product-type-detail-PBP572AM.js} +7 -6
  136. package/dist/{product-type-list-H5EQHCXS.js → product-type-list-XWNUKETZ.js} +6 -5
  137. package/dist/{product-variant-detail-5WKYURFA.js → product-variant-detail-RJUQWBYH.js} +4 -3
  138. package/dist/{profile-detail-EYNXOHGZ.js → profile-detail-H22ZBNOB.js} +5 -4
  139. package/dist/{promotion-add-campaign-B5SF72KC.js → promotion-add-campaign-5LCKEU6H.js} +3 -3
  140. package/dist/promotion-create-KXBEHXPK.js +54 -0
  141. package/dist/{promotion-detail-MVFOMS4E.js → promotion-detail-NZZ2HII7.js} +7 -6
  142. package/dist/{promotion-list-IN4VWEQN.js → promotion-list-KARWNOAQ.js} +9 -8
  143. package/dist/{refund-reason-list-DJZZC7KK.js → refund-reason-list-GTZQBZ7R.js} +3 -2
  144. package/dist/{region-detail-OFZHX57G.js → region-detail-3OPMLS4V.js} +5 -4
  145. package/dist/{region-list-L4FKHVJJ.js → region-list-542EMW5C.js} +6 -5
  146. package/dist/{reservation-detail-LZYEM5NW.js → reservation-detail-IPGIBQW4.js} +5 -4
  147. package/dist/{reservation-list-OGPDB7WG.js → reservation-list-CEFKMB2G.js} +6 -5
  148. package/dist/{reset-password-Q7Y4FWRE.js → reset-password-R5ULRWEM.js} +1 -1
  149. package/dist/{return-reason-list-6ICMSVKF.js → return-reason-list-S7LU655M.js} +5 -4
  150. package/dist/{sales-channel-detail-RRJG7U7R.js → sales-channel-detail-QCJ6OC3H.js} +7 -6
  151. package/dist/{sales-channel-list-LUZ4ZXCY.js → sales-channel-list-KYNBWXUD.js} +7 -7
  152. package/dist/seller-details-A7TYGP67.js +104 -0
  153. package/dist/{seller-list-664H4SI5.js → seller-list-5KPNNC2B.js} +7 -6
  154. package/dist/{shipping-option-type-detail-2RY3NHRO.js → shipping-option-type-detail-OBYOZZWS.js} +5 -4
  155. package/dist/{shipping-option-type-list-IOSOE33S.js → shipping-option-type-list-UGVMQ3DC.js} +6 -5
  156. package/dist/{shipping-profile-detail-RIIAX7VE.js → shipping-profile-detail-RYOFRMLH.js} +5 -4
  157. package/dist/{shipping-profiles-list-AL4EJSJY.js → shipping-profiles-list-XJGQ7AVX.js} +5 -4
  158. package/dist/{tax-region-create-UOTLTCOP.js → tax-region-create-AR2LNF2G.js} +6 -6
  159. package/dist/{tax-region-detail-CA2W5W6A.js → tax-region-detail-PIGY5JQ7.js} +7 -6
  160. package/dist/{tax-region-list-JTZ7KZCX.js → tax-region-list-AMGZWUAI.js} +6 -5
  161. package/dist/{tax-region-province-detail-ZHLX4FF4.js → tax-region-province-detail-D3R4FJT4.js} +6 -5
  162. package/dist/types-DUhfb5tH.d.ts +30 -0
  163. package/dist/{user-detail-YNPBC5MN.js → user-detail-H66ZAR7W.js} +5 -4
  164. package/dist/{user-list-LNTZNT3D.js → user-list-HIUXLIJV.js} +5 -4
  165. package/package.json +3 -3
  166. package/dist/chunk-62ZRA6BZ.js +0 -216
  167. package/dist/chunk-6PNMR6XP.js +0 -192
  168. package/dist/chunk-7COSFMM7.js +0 -163
  169. package/dist/chunk-A2KURGQO.js +0 -151
  170. package/dist/chunk-BHID7W3U.js +0 -78
  171. package/dist/chunk-UKLRBS4W.js +0 -61
  172. package/dist/inventory-create-QLEIHESO.js +0 -620
  173. package/dist/location-service-zone-shipping-option-create-GYPW6SSN.js +0 -811
  174. package/dist/promotion-create-D77SANLX.js +0 -1262
  175. package/dist/{adjust-inventory-HZCWL6SC.js → adjust-inventory-WL7D7TQR.js} +3 -3
  176. package/dist/{campaign-budget-edit-AIXCDGG3.js → campaign-budget-edit-722ECPRI.js} +3 -3
  177. package/dist/{category-products-XLCG2JR7.js → category-products-H3VFYGOU.js} +2 -2
  178. package/dist/{chunk-DEKJJ7NG.js → chunk-OFCUTNGV.js} +3 -3
  179. package/dist/{chunk-KUWNYCGL.js → chunk-U3OWJE7V.js} +0 -0
  180. package/dist/{collection-add-products-IQ7M63BA.js → collection-add-products-BQ2FZKR4.js} +1 -1
  181. package/dist/{commission-rate-create-VC72GTV4.js → commission-rate-create-GFQNADQS.js} +9 -9
  182. package/dist/{commission-rate-edit-AXJKJNFY.js → commission-rate-edit-A2BFZUEI.js} +9 -9
  183. package/dist/{location-service-zone-shipping-option-edit-E3GN4ZF5.js → location-service-zone-shipping-option-edit-KPECMUYB.js} +3 -3
  184. package/dist/{order-create-claim-7WW6MXTT.js → order-create-claim-IWTV2HKL.js} +6 -6
  185. package/dist/{order-create-edit-KAH6ZPLX.js → order-create-edit-H2MHZFIW.js} +5 -5
  186. package/dist/{order-create-exchange-ELLWF3IY.js → order-create-exchange-PPMRSGLD.js} +6 -6
  187. package/dist/{order-create-refund-5QZBOSCA.js → order-create-refund-LZOHRL7T.js} +3 -3
  188. package/dist/{order-create-return-L6DEDPJK.js → order-create-return-WY6R4QMN.js} +6 -6
  189. package/dist/{order-edit-shipping-address-BPU7OL2N.js → order-edit-shipping-address-XQCSN4YO.js} +3 -3
  190. package/dist/{order-receive-return-FW5QZJBM.js → order-receive-return-GKMHYD4G.js} +1 -1
  191. package/dist/{product-edit-LQJDUUVX.js → product-edit-QGRKGJ3H.js} +1 -1
  192. package/dist/{product-variant-edit-66ZUIIMP.js → product-variant-edit-IQLBIHDE.js} +1 -1
  193. package/dist/{product-variant-manage-inventory-items-CV2CC2PV.js → product-variant-manage-inventory-items-C77QHYRT.js} +3 -3
  194. package/dist/{promotion-edit-details-YKS24GBD.js → promotion-edit-details-BFXPUEE6.js} +4 -4
  195. package/dist/{region-create-UMJK3VGL.js → region-create-ZPY6V77Q.js} +3 -3
  196. package/dist/{region-edit-ODVSNJHM.js → region-edit-Q2CBVPR2.js} +3 -3
  197. package/dist/{sales-channel-add-products-EOWFSO35.js → sales-channel-add-products-PIY4PUIW.js} +2 -2
  198. package/dist/{tax-region-province-create-RFYCUDER.js → tax-region-province-create-7BMYABJ6.js} +3 -3
  199. package/dist/{tax-region-tax-override-create-WIWUNXW6.js → tax-region-tax-override-create-EBDKSAXG.js} +6 -6
  200. package/dist/{tax-region-tax-override-edit-SWROFQTP.js → tax-region-tax-override-edit-55ODL7KC.js} +6 -6
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-ULJ3OMWU.js";
11
11
  import {
12
12
  SingleColumnPage
13
- } from "./chunk-U2UCL2VG.js";
13
+ } from "./chunk-XIZLPYEE.js";
14
14
  import {
15
15
  SingleColumnPageSkeleton
16
16
  } from "./chunk-INNFZYX2.js";
@@ -133,7 +133,7 @@ var ProductTypeProductSection = ({
133
133
  };
134
134
 
135
135
  // src/pages/product-types/product-type-detail/product-type-detail.tsx
136
- import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
136
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
137
137
  var Root = ({ children }) => {
138
138
  const { id } = useParams();
139
139
  const initialData = useLoaderData();
@@ -150,16 +150,16 @@ var Root = ({ children }) => {
150
150
  if (isError) {
151
151
  throw error;
152
152
  }
153
- return /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_type, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
153
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_type, children }) : /* @__PURE__ */ jsxs3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_type, children: [
154
154
  /* @__PURE__ */ jsx3(ProductTypeGeneralSection, { productType: product_type }),
155
155
  /* @__PURE__ */ jsx3(ProductTypeProductSection, { productType: product_type })
156
- ] }) });
156
+ ] });
157
157
  };
158
- var ProductTypeDetail = Object.assign(Root, {
158
+ var ProductTypeDetailPage = Object.assign(Root, {
159
159
  GeneralSection: ProductTypeGeneralSection,
160
160
  ProductSection: ProductTypeProductSection
161
161
  });
162
162
 
163
163
  export {
164
- ProductTypeDetail
164
+ ProductTypeDetailPage
165
165
  };
@@ -8,13 +8,13 @@ import {
8
8
  } from "./chunk-M33NQCEV.js";
9
9
  import {
10
10
  SingleColumnPage
11
- } from "./chunk-U2UCL2VG.js";
11
+ } from "./chunk-XIZLPYEE.js";
12
12
  import {
13
13
  useSalesChannelTableColumns,
14
14
  useSalesChannelTableEmptyState,
15
15
  useSalesChannelTableFilters,
16
16
  useSalesChannelTableQuery
17
- } from "./chunk-G4QMLQF2.js";
17
+ } from "./chunk-NZN7PFPB.js";
18
18
  import {
19
19
  DataTable
20
20
  } from "./chunk-UQITHKTH.js";
@@ -386,43 +386,48 @@ var useCommands = (id, setRowSelection) => {
386
386
  };
387
387
 
388
388
  // src/pages/api-key-management/api-key-management-detail/api-key-management-detail.tsx
389
- import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
389
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
390
390
  var Root = ({ children }) => {
391
391
  const initialData = useLoaderData();
392
392
  const { id } = useParams();
393
- const { api_key, isLoading, isError, error } = useApiKey(
394
- id,
395
- void 0,
396
- {
397
- initialData
398
- }
399
- );
393
+ const { api_key, isLoading, isError, error } = useApiKey(id, void 0, {
394
+ initialData
395
+ });
400
396
  if (isLoading || !api_key) {
401
397
  return /* @__PURE__ */ jsx3(SingleColumnPageSkeleton, { showJSON: true, sections: 1 });
402
398
  }
403
399
  if (isError) {
404
400
  throw error;
405
401
  }
406
- const isPublishable = api_key?.type === "publishable" /* PUBLISHABLE */;
407
- return /* @__PURE__ */ jsx3(
402
+ const isPublishable = api_key.type === "publishable" /* PUBLISHABLE */;
403
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(
404
+ SingleColumnPage,
405
+ {
406
+ hasOutlet: true,
407
+ showJSON: true,
408
+ data: api_key,
409
+ "data-testid": `${api_key.type}-api-key-detail-page`,
410
+ children
411
+ }
412
+ ) : /* @__PURE__ */ jsxs2(
408
413
  SingleColumnPage,
409
414
  {
410
415
  hasOutlet: true,
411
416
  showJSON: true,
412
417
  data: api_key,
413
418
  "data-testid": `${api_key.type}-api-key-detail-page`,
414
- children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(Fragment2, { children: [
419
+ children: [
415
420
  /* @__PURE__ */ jsx3(ApiKeyGeneralSection, { apiKey: api_key }),
416
421
  isPublishable && /* @__PURE__ */ jsx3(ApiKeySalesChannelSection, { apiKey: api_key })
417
- ] })
422
+ ]
418
423
  }
419
424
  );
420
425
  };
421
- var ApiKeyManagementDetail = Object.assign(Root, {
426
+ var ApiKeyManagementDetailPage = Object.assign(Root, {
422
427
  GeneralSection: ApiKeyGeneralSection,
423
428
  SalesChannelSection: ApiKeySalesChannelSection
424
429
  });
425
430
 
426
431
  export {
427
- ApiKeyManagementDetail
432
+ ApiKeyManagementDetailPage
428
433
  };
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  CategoryTree
3
3
  } from "./chunk-YXFG3M2D.js";
4
- import {
5
- transformNullableFormData
6
- } from "./chunk-7RPRNVBS.js";
7
4
  import {
8
5
  insertCategoryTreeItem
9
6
  } from "./chunk-Y456KVIN.js";
7
+ import {
8
+ transformNullableFormData
9
+ } from "./chunk-7RPRNVBS.js";
10
10
  import {
11
11
  HandleInput
12
12
  } from "./chunk-TLE6YHGH.js";
13
- import "./chunk-TKGWSUEI.js";
14
13
  import {
15
- KeyboundForm
16
- } from "./chunk-U2ZFCAPX.js";
17
- import "./chunk-SMQT3ZNO.js";
14
+ TabbedForm,
15
+ defineTabMeta,
16
+ useTabbedForm
17
+ } from "./chunk-5GG65TKV.js";
18
18
  import {
19
19
  useDocumentDirection
20
20
  } from "./chunk-Y7QKP6QU.js";
@@ -29,28 +29,39 @@ import {
29
29
  useCreateProductCategory,
30
30
  useProductCategories
31
31
  } from "./chunk-36ORDF7W.js";
32
- import "./chunk-K357FGGP.js";
33
- import "./chunk-RHKRREUU.js";
34
- import "./chunk-ZA2KFUFR.js";
35
- import "./chunk-ZYNBKBY3.js";
36
- import "./chunk-NBMM2TZK.js";
32
+
33
+ // src/pages/categories/category-create/components/create-category-form/schema.ts
34
+ import { z } from "zod";
35
+ var CreateCategoryDetailsSchema = z.object({
36
+ name: z.string().min(1),
37
+ description: z.string().optional(),
38
+ handle: z.string().optional(),
39
+ status: z.enum(["active", "inactive"]),
40
+ visibility: z.enum(["public", "internal"])
41
+ });
42
+ var CreateCategorySchema = z.object({
43
+ rank: z.number().nullable(),
44
+ parent_category_id: z.string().nullable()
45
+ }).merge(CreateCategoryDetailsSchema);
37
46
 
38
47
  // src/pages/categories/category-create/category-create.tsx
48
+ import { Children as Children2 } from "react";
39
49
  import { useSearchParams } from "react-router-dom";
40
50
 
41
51
  // src/pages/categories/category-create/components/create-category-form/create-category-form.tsx
42
52
  import { zodResolver } from "@hookform/resolvers/zod";
43
- import { Button, ProgressTabs, toast } from "@medusajs/ui";
53
+ import { toast } from "@medusajs/ui";
54
+ import { Children, useMemo as useMemo2 } from "react";
44
55
  import { useForm } from "react-hook-form";
45
56
  import { useTranslation as useTranslation3 } from "react-i18next";
46
- import { useState as useState2 } from "react";
47
57
 
48
58
  // src/pages/categories/category-create/components/create-category-form/create-category-details.tsx
49
59
  import { Heading, Input, Select, Text, Textarea } from "@medusajs/ui";
50
60
  import { useTranslation } from "react-i18next";
51
61
  import { jsx, jsxs } from "react/jsx-runtime";
52
- var CreateCategoryDetails = ({ form }) => {
62
+ var Root = () => {
53
63
  const { t } = useTranslation();
64
+ const form = useTabbedForm();
54
65
  const direction = useDocumentDirection();
55
66
  return /* @__PURE__ */ jsx("div", { className: "flex flex-col items-center p-16", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-8", "data-testid": "category-create-form-content", children: [
56
67
  /* @__PURE__ */ jsxs("div", { "data-testid": "category-create-form-header", children: [
@@ -163,6 +174,12 @@ var CreateCategoryDetails = ({ form }) => {
163
174
  ] })
164
175
  ] }) });
165
176
  };
177
+ Root._tabMeta = defineTabMeta({
178
+ id: "details",
179
+ labelKey: "categories.create.tabs.details",
180
+ validationFields: ["name", "handle", "description", "status", "visibility"]
181
+ });
182
+ var CreateCategoryDetails = Root;
166
183
 
167
184
  // src/pages/categories/category-create/components/create-category-form/create-category-nesting.tsx
168
185
  import { Badge } from "@medusajs/ui";
@@ -171,12 +188,11 @@ import { useWatch } from "react-hook-form";
171
188
  import { useTranslation as useTranslation2 } from "react-i18next";
172
189
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
173
190
  var ID = "new-item";
174
- var CreateCategoryNesting = ({
175
- form,
176
- shouldFreeze
177
- }) => {
191
+ var Root2 = () => {
178
192
  const { t } = useTranslation2();
193
+ const form = useTabbedForm();
179
194
  const [snapshot, setSnapshot] = useState([]);
195
+ const shouldFreeze = form.formState.isSubmitting;
180
196
  const { product_categories, isPending, isError, error } = useProductCategories({
181
197
  parent_category_id: "null",
182
198
  limit: 9999,
@@ -223,7 +239,7 @@ var CreateCategoryNesting = ({
223
239
  throw error;
224
240
  }
225
241
  const ready = !isPending && !!product_categories;
226
- return /* @__PURE__ */ jsx2("div", { "data-testid": "category-create-form-nesting", children: /* @__PURE__ */ jsx2(
242
+ return /* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-subtle flex-1", "data-testid": "category-create-form-nesting", children: /* @__PURE__ */ jsx2(
227
243
  CategoryTree,
228
244
  {
229
245
  value: shouldFreeze ? snapshot : value,
@@ -242,32 +258,23 @@ var CreateCategoryNesting = ({
242
258
  }
243
259
  ) });
244
260
  };
245
-
246
- // src/pages/categories/category-create/components/create-category-form/schema.ts
247
- import { z } from "zod";
248
- var CreateCategoryDetailsSchema = z.object({
249
- name: z.string().min(1),
250
- description: z.string().optional(),
251
- handle: z.string().optional(),
252
- status: z.enum(["active", "inactive"]),
253
- visibility: z.enum(["public", "internal"])
261
+ Root2._tabMeta = defineTabMeta({
262
+ id: "organize",
263
+ labelKey: "categories.create.tabs.organize",
264
+ validationFields: ["parent_category_id", "rank"]
254
265
  });
255
- var CreateCategorySchema = z.object({
256
- rank: z.number().nullable(),
257
- parent_category_id: z.string().nullable()
258
- }).merge(CreateCategoryDetailsSchema);
266
+ var CreateCategoryNesting = Root2;
259
267
 
260
268
  // src/pages/categories/category-create/components/create-category-form/create-category-form.tsx
261
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
269
+ import { jsx as jsx3 } from "react/jsx-runtime";
262
270
  var CreateCategoryForm = ({
263
- parentCategoryId
271
+ parentCategoryId,
272
+ children,
273
+ schema,
274
+ defaultValues: extraDefaults
264
275
  }) => {
265
276
  const { t } = useTranslation3();
266
277
  const { handleSuccess } = useRouteModal();
267
- const direction = useDocumentDirection();
268
- const [activeTab, setActiveTab] = useState2("details" /* DETAILS */);
269
- const [validDetails, setValidDetails] = useState2(false);
270
- const [shouldFreeze, setShouldFreeze] = useState2(false);
271
278
  const form = useForm({
272
279
  defaultValues: {
273
280
  name: "",
@@ -276,40 +283,16 @@ var CreateCategoryForm = ({
276
283
  status: "active",
277
284
  visibility: "public",
278
285
  rank: parentCategoryId ? 0 : null,
279
- parent_category_id: parentCategoryId
286
+ parent_category_id: parentCategoryId,
287
+ ...extraDefaults
280
288
  },
281
- resolver: zodResolver(CreateCategorySchema)
289
+ resolver: zodResolver(schema ?? CreateCategorySchema)
282
290
  });
283
- const handleTabChange = (tab) => {
284
- if (tab === "organize" /* ORGANIZE */) {
285
- const { name, handle, description, status, visibility } = form.getValues();
286
- const result = CreateCategoryDetailsSchema.safeParse({
287
- name,
288
- handle,
289
- description,
290
- status,
291
- visibility
292
- });
293
- if (!result.success) {
294
- result.error.errors.forEach((error) => {
295
- form.setError(error.path.join("."), {
296
- type: "manual",
297
- message: error.message
298
- });
299
- });
300
- return;
301
- }
302
- form.clearErrors();
303
- setValidDetails(true);
304
- }
305
- setActiveTab(tab);
306
- };
307
291
  const { mutateAsync, isPending } = useCreateProductCategory();
308
- const handleSubmit = form.handleSubmit((data) => {
292
+ const handleSubmit = form.handleSubmit(async (data) => {
309
293
  const { visibility, status, parent_category_id, rank, name, ...rest } = data;
310
294
  const parsedData = transformNullableFormData(rest, false);
311
- setShouldFreeze(true);
312
- mutateAsync(
295
+ await mutateAsync(
313
296
  {
314
297
  name,
315
298
  ...parsedData,
@@ -329,100 +312,46 @@ var CreateCategoryForm = ({
329
312
  },
330
313
  onError: (error) => {
331
314
  toast.error(error.message);
332
- setShouldFreeze(false);
333
315
  }
334
316
  }
335
317
  );
336
318
  });
337
- const nestingStatus = form.getFieldState("parent_category_id")?.isDirty || form.getFieldState("rank")?.isDirty || activeTab === "organize" /* ORGANIZE */ ? "in-progress" : "not-started";
338
- const detailsStatus = validDetails ? "completed" : "in-progress";
339
- return /* @__PURE__ */ jsx3(RouteFocusModal.Form, { form, "data-testid": "category-create-form", children: /* @__PURE__ */ jsx3(
340
- KeyboundForm,
319
+ const defaultTabs = useMemo2(
320
+ () => [
321
+ /* @__PURE__ */ jsx3(CreateCategoryDetails, {}, "details"),
322
+ /* @__PURE__ */ jsx3(CreateCategoryNesting, {}, "organize")
323
+ ],
324
+ []
325
+ );
326
+ const hasCustomChildren = Children.count(children) > 0;
327
+ return /* @__PURE__ */ jsx3(
328
+ TabbedForm,
341
329
  {
330
+ form,
342
331
  onSubmit: handleSubmit,
343
- className: "flex size-full flex-col overflow-hidden",
344
- children: /* @__PURE__ */ jsxs3(
345
- ProgressTabs,
346
- {
347
- dir: direction,
348
- value: activeTab,
349
- onValueChange: (tab) => handleTabChange(tab),
350
- className: "flex size-full flex-col",
351
- children: [
352
- /* @__PURE__ */ jsx3(RouteFocusModal.Header, { "data-testid": "category-create-form-header", children: /* @__PURE__ */ jsx3("div", { className: "flex w-full items-center justify-between", children: /* @__PURE__ */ jsx3("div", { className: "-my-2 w-full max-w-[400px] border-l", children: /* @__PURE__ */ jsxs3(ProgressTabs.List, { className: "grid w-full grid-cols-2", "data-testid": "category-create-form-tabs-list", children: [
353
- /* @__PURE__ */ jsx3(
354
- ProgressTabs.Trigger,
355
- {
356
- value: "details" /* DETAILS */,
357
- status: detailsStatus,
358
- className: "w-full min-w-0 overflow-hidden",
359
- "data-testid": "category-create-form-tab-details",
360
- children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: t("categories.create.tabs.details") })
361
- }
362
- ),
363
- /* @__PURE__ */ jsx3(
364
- ProgressTabs.Trigger,
365
- {
366
- value: "organize" /* ORGANIZE */,
367
- status: nestingStatus,
368
- className: "w-full min-w-0 overflow-hidden",
369
- "data-testid": "category-create-form-tab-organize",
370
- children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: t("categories.create.tabs.organize") })
371
- }
372
- )
373
- ] }) }) }) }),
374
- /* @__PURE__ */ jsxs3(RouteFocusModal.Body, { className: "flex size-full flex-col overflow-auto", "data-testid": "category-create-form-body", children: [
375
- /* @__PURE__ */ jsx3(ProgressTabs.Content, { value: "details" /* DETAILS */, "data-testid": "category-create-form-tab-details-content", children: /* @__PURE__ */ jsx3(CreateCategoryDetails, { form }) }),
376
- /* @__PURE__ */ jsx3(
377
- ProgressTabs.Content,
378
- {
379
- value: "organize" /* ORGANIZE */,
380
- className: "bg-ui-bg-subtle flex-1",
381
- "data-testid": "category-create-form-tab-organize-content",
382
- children: /* @__PURE__ */ jsx3(CreateCategoryNesting, { form, shouldFreeze })
383
- }
384
- )
385
- ] }),
386
- /* @__PURE__ */ jsx3(RouteFocusModal.Footer, { "data-testid": "category-create-form-footer", children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-end gap-x-2", children: [
387
- /* @__PURE__ */ jsx3(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx3(Button, { size: "small", variant: "secondary", "data-testid": "category-create-form-cancel-button", children: t("actions.cancel") }) }),
388
- activeTab === "organize" /* ORGANIZE */ ? /* @__PURE__ */ jsx3(
389
- Button,
390
- {
391
- size: "small",
392
- variant: "primary",
393
- type: "submit",
394
- isLoading: isPending,
395
- "data-testid": "category-create-form-save-button",
396
- children: t("actions.save")
397
- },
398
- "submit-btn"
399
- ) : /* @__PURE__ */ jsx3(
400
- Button,
401
- {
402
- size: "small",
403
- variant: "primary",
404
- type: "button",
405
- onClick: () => handleTabChange("organize" /* ORGANIZE */),
406
- "data-testid": "category-create-form-continue-button",
407
- children: t("actions.continue")
408
- },
409
- "continue-btn"
410
- )
411
- ] }) })
412
- ]
413
- }
414
- )
332
+ isLoading: isPending,
333
+ children: hasCustomChildren ? children : defaultTabs
415
334
  }
416
- ) });
335
+ );
417
336
  };
418
337
 
419
338
  // src/pages/categories/category-create/category-create.tsx
420
339
  import { jsx as jsx4 } from "react/jsx-runtime";
421
- var CategoryCreate = () => {
340
+ var Root3 = ({ children }) => {
422
341
  const [searchParams] = useSearchParams();
423
342
  const parentCategoryId = searchParams.get("parent_category_id");
424
- return /* @__PURE__ */ jsx4(RouteFocusModal, { children: /* @__PURE__ */ jsx4(CreateCategoryForm, { parentCategoryId }) });
343
+ return /* @__PURE__ */ jsx4(RouteFocusModal, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx4(CreateCategoryForm, { parentCategoryId }) });
425
344
  };
345
+ var CategoryCreatePage = Object.assign(Root3, {
346
+ Form: CreateCategoryForm,
347
+ DetailsTab: CreateCategoryDetails,
348
+ OrganizeTab: CreateCategoryNesting,
349
+ Tab: TabbedForm.Tab
350
+ });
351
+ var CategoryCreate = Root3;
352
+
426
353
  export {
427
- CategoryCreate as Component
354
+ CreateCategorySchema,
355
+ CategoryCreatePage,
356
+ CategoryCreate
428
357
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2BE77FVK.js";
4
4
  import {
5
5
  SingleColumnPage
6
- } from "./chunk-U2UCL2VG.js";
6
+ } from "./chunk-XIZLPYEE.js";
7
7
  import {
8
8
  SingleColumnPageSkeleton
9
9
  } from "./chunk-INNFZYX2.js";
@@ -86,17 +86,17 @@ var Root = ({ children }) => {
86
86
  if (isError) {
87
87
  throw error;
88
88
  }
89
- return /* @__PURE__ */ jsx2(SingleColumnPage, { showJSON: true, showMetadata: true, data: shipping_option_type, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(
89
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { showJSON: true, showMetadata: true, data: shipping_option_type, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { showJSON: true, showMetadata: true, data: shipping_option_type, children: /* @__PURE__ */ jsx2(
90
90
  ShippingOptionTypeGeneralSection,
91
91
  {
92
92
  shippingOptionType: shipping_option_type
93
93
  }
94
94
  ) });
95
95
  };
96
- var ShippingOptionTypeDetail = Object.assign(Root, {
96
+ var ShippingOptionTypeDetailPage = Object.assign(Root, {
97
97
  GeneralSection: ShippingOptionTypeGeneralSection
98
98
  });
99
99
 
100
100
  export {
101
- ShippingOptionTypeDetail
101
+ ShippingOptionTypeDetailPage
102
102
  };
@@ -13,13 +13,13 @@ import {
13
13
  import {
14
14
  useProductTableColumns
15
15
  } from "./chunk-3CKTAFTR.js";
16
+ import {
17
+ TwoColumnPage
18
+ } from "./chunk-V5J73NPW.js";
16
19
  import {
17
20
  _DataTable,
18
21
  useDataTable
19
22
  } from "./chunk-ULJ3OMWU.js";
20
- import {
21
- TwoColumnPage
22
- } from "./chunk-U2UCL2VG.js";
23
23
  import {
24
24
  Skeleton,
25
25
  TwoColumnPageSkeleton
@@ -442,7 +442,7 @@ var useColumns = (priceList) => {
442
442
  };
443
443
 
444
444
  // src/pages/price-lists/price-list-detail/price-list-detail.tsx
445
- import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
445
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
446
446
  var Root = ({ children }) => {
447
447
  const { id } = useParams();
448
448
  const { price_list, isLoading, isError, error } = usePriceList(id);
@@ -452,15 +452,15 @@ var Root = ({ children }) => {
452
452
  if (isError) {
453
453
  throw error;
454
454
  }
455
- return /* @__PURE__ */ jsx4(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs4(TwoColumnPage, { data: price_list, showJSON: true, children: [
455
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx4(TwoColumnPage, { data: price_list, showJSON: true, "data-testid": "price-list-detail-page", children }) : /* @__PURE__ */ jsxs4(TwoColumnPage, { data: price_list, showJSON: true, "data-testid": "price-list-detail-page", children: [
456
456
  /* @__PURE__ */ jsxs4(TwoColumnPage.Main, { children: [
457
457
  /* @__PURE__ */ jsx4(PriceListGeneralSection, { priceList: price_list }),
458
458
  /* @__PURE__ */ jsx4(PriceListProductSection, { priceList: price_list })
459
459
  ] }),
460
460
  /* @__PURE__ */ jsx4(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx4(PriceListConfigurationSection, { priceList: price_list }) })
461
- ] }) });
461
+ ] });
462
462
  };
463
- var PriceListDetails = Object.assign(Root, {
463
+ var PriceListDetailPage = Object.assign(Root, {
464
464
  Main: TwoColumnPage.Main,
465
465
  Sidebar: TwoColumnPage.Sidebar,
466
466
  MainGeneralSection: PriceListGeneralSection,
@@ -469,5 +469,5 @@ var PriceListDetails = Object.assign(Root, {
469
469
  });
470
470
 
471
471
  export {
472
- PriceListDetails
472
+ PriceListDetailPage
473
473
  };
@@ -3,7 +3,7 @@ import {
3
3
  useCombinedRefs,
4
4
  useDataGridCell,
5
5
  useDataGridCellError
6
- } from "./chunk-KUWNYCGL.js";
6
+ } from "./chunk-U3OWJE7V.js";
7
7
  import {
8
8
  ConditionalTooltip
9
9
  } from "./chunk-LAVHRER2.js";
@@ -71,16 +71,16 @@ import {
71
71
  getFormattedAddress,
72
72
  isSameAddress
73
73
  } from "./chunk-W6Y3PPU5.js";
74
- import {
75
- _DataTable,
76
- useDataTable
77
- } from "./chunk-ULJ3OMWU.js";
78
74
  import {
79
75
  TwoColumnPage
80
- } from "./chunk-U2UCL2VG.js";
76
+ } from "./chunk-V5J73NPW.js";
81
77
  import {
82
78
  Thumbnail
83
79
  } from "./chunk-WIYFXWRI.js";
80
+ import {
81
+ _DataTable,
82
+ useDataTable
83
+ } from "./chunk-ULJ3OMWU.js";
84
84
  import {
85
85
  Skeleton,
86
86
  TwoColumnPageSkeleton
@@ -3756,11 +3756,11 @@ var useColumns = () => {
3756
3756
  };
3757
3757
 
3758
3758
  // src/pages/orders/order-detail/order-detail.tsx
3759
- import { Fragment as Fragment4, jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
3759
+ import { jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
3760
3760
  var Root = ({ children }) => {
3761
3761
  const initialData = useLoaderData();
3762
3762
  const { id } = useParams2();
3763
- const { order, isLoading, isError, error } = useOrder(
3763
+ const { order: rawOrder, isLoading, isError, error } = useOrder(
3764
3764
  id,
3765
3765
  {
3766
3766
  fields: DEFAULT_FIELDS
@@ -3769,8 +3769,9 @@ var Root = ({ children }) => {
3769
3769
  initialData
3770
3770
  }
3771
3771
  );
3772
- if (order) {
3773
- order.items = order.items.sort((itemA, itemB) => {
3772
+ const order = rawOrder ? {
3773
+ ...rawOrder,
3774
+ items: [...rawOrder.items].sort((itemA, itemB) => {
3774
3775
  if (itemA.created_at > itemB.created_at) {
3775
3776
  return 1;
3776
3777
  }
@@ -3778,8 +3779,8 @@ var Root = ({ children }) => {
3778
3779
  return -1;
3779
3780
  }
3780
3781
  return 0;
3781
- });
3782
- }
3782
+ })
3783
+ } : rawOrder;
3783
3784
  const { order: orderPreview, isLoading: isPreviewLoading } = useOrderPreview(
3784
3785
  id
3785
3786
  );
@@ -3789,7 +3790,17 @@ var Root = ({ children }) => {
3789
3790
  if (isError) {
3790
3791
  throw error;
3791
3792
  }
3792
- return /* @__PURE__ */ jsx19(Fragment4, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs19(
3793
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx19(
3794
+ TwoColumnPage,
3795
+ {
3796
+ data: order,
3797
+ showJSON: true,
3798
+ showMetadata: true,
3799
+ hasOutlet: true,
3800
+ "data-testid": "order-detail-page",
3801
+ children
3802
+ }
3803
+ ) : /* @__PURE__ */ jsxs19(
3793
3804
  TwoColumnPage,
3794
3805
  {
3795
3806
  data: order,
@@ -3815,9 +3826,8 @@ var Root = ({ children }) => {
3815
3826
  ] })
3816
3827
  ]
3817
3828
  }
3818
- ) });
3829
+ );
3819
3830
  };
3820
- var OrderDetail = Root;
3821
3831
  var OrderDetailPage = Object.assign(Root, {
3822
3832
  Main: TwoColumnPage.Main,
3823
3833
  Sidebar: TwoColumnPage.Sidebar,
@@ -3835,5 +3845,5 @@ var OrderDetailPage = Object.assign(Root, {
3835
3845
  });
3836
3846
 
3837
3847
  export {
3838
- OrderDetail
3848
+ OrderDetailPage
3839
3849
  };
@@ -27,9 +27,11 @@ var TaxRegionTable = ({
27
27
  queryObject,
28
28
  prefix,
29
29
  children,
30
+ renderHeader,
30
31
  "data-testid": dataTestId
31
32
  }) => {
32
33
  const { t } = useTranslation();
34
+ const showHeader = renderHeader !== false;
33
35
  if (isPending) {
34
36
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col divide-y", children: [
35
37
  Array.from({ length: 3 }).map((_, index) => {
@@ -49,7 +51,7 @@ var TaxRegionTable = ({
49
51
  const noRecords = !isPending && count === 0 && noQuery;
50
52
  const { pageIndex, pageSize } = table.getState().pagination;
51
53
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col divide-y", "data-testid": dataTestId, children: [
52
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-between gap-x-4 gap-y-3 px-6 py-4 md:flex-row md:items-center", "data-testid": dataTestId ? `${dataTestId}-header` : void 0, children: [
54
+ showHeader && /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-between gap-x-4 gap-y-3 px-6 py-4 md:flex-row md:items-center", "data-testid": dataTestId ? `${dataTestId}-header` : void 0, children: [
53
55
  /* @__PURE__ */ jsx("div", { children }),
54
56
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
55
57
  !noRecords && /* @__PURE__ */ jsx("div", { className: "flex w-full items-center gap-x-2 md:w-fit", children: /* @__PURE__ */ jsx(
@@ -63,7 +65,7 @@ var TaxRegionTable = ({
63
65
  prefix
64
66
  }
65
67
  ) }),
66
- /* @__PURE__ */ jsx(Link, { to: action.to, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", "data-testid": dataTestId ? `${dataTestId}-create-button` : void 0, children: action.label }) })
68
+ action && /* @__PURE__ */ jsx(Link, { to: action.to, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", "data-testid": dataTestId ? `${dataTestId}-create-button` : void 0, children: action.label }) })
67
69
  ] })
68
70
  ] }),
69
71
  noResults && /* @__PURE__ */ jsx(NoResults, {}),