@acmekit/dashboard 2.13.1

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 (2066) hide show
  1. package/README.md +30 -0
  2. package/dist/Inter-Medium-RUQTUVA3.ttf +0 -0
  3. package/dist/Inter-Regular-CKBOXRQ3.ttf +0 -0
  4. package/dist/RobotoMono-Medium-LUNBMOOH.ttf +0 -0
  5. package/dist/RobotoMono-Regular-27MA6W2G.ttf +0 -0
  6. package/dist/add-campaign-promotions-GV3D3N2X.mjs +263 -0
  7. package/dist/add-locales-WQDGU5A2.mjs +82 -0
  8. package/dist/adjust-inventory-CSOFODJL.mjs +217 -0
  9. package/dist/api-key-management-create-JUXDTSXT.mjs +176 -0
  10. package/dist/api-key-management-detail-7TKDKAYS.mjs +493 -0
  11. package/dist/api-key-management-edit-ZWOCXPXV.mjs +110 -0
  12. package/dist/api-key-management-list-C6BVUVSI.mjs +356 -0
  13. package/dist/api-key-management-sales-channels-B2HCUBX7.mjs +206 -0
  14. package/dist/app.css +5330 -0
  15. package/dist/app.js +195968 -0
  16. package/dist/app.mjs +81 -0
  17. package/dist/campaign-budget-edit-OHOU27NN.mjs +147 -0
  18. package/dist/campaign-configuration-MZHTGODE.mjs +154 -0
  19. package/dist/campaign-create-VAJXI544.mjs +31 -0
  20. package/dist/campaign-detail-MWRQ5LSR.mjs +677 -0
  21. package/dist/campaign-edit-Z2KT7NZD.mjs +206 -0
  22. package/dist/campaign-list-HOAE6MXC.mjs +192 -0
  23. package/dist/categories-metadata-OESX2QXC.mjs +74 -0
  24. package/dist/category-create-AIVN7H3A.mjs +423 -0
  25. package/dist/category-detail-PDRC4NHH.mjs +579 -0
  26. package/dist/category-edit-7OLII5PI.mjs +224 -0
  27. package/dist/category-list-SYODXAV7.mjs +309 -0
  28. package/dist/category-organize-C3IUWW33.mjs +113 -0
  29. package/dist/category-products-GA4KP7EC.mjs +284 -0
  30. package/dist/chunk-22YYMH6M.mjs +382 -0
  31. package/dist/chunk-2PCPX3L2.mjs +92 -0
  32. package/dist/chunk-2V4DS7AE.mjs +49 -0
  33. package/dist/chunk-3C6WQ7NH.mjs +46 -0
  34. package/dist/chunk-3ISBJK7K.mjs +45 -0
  35. package/dist/chunk-3TAD7FW4.mjs +431 -0
  36. package/dist/chunk-3TZOFKX2.mjs +110 -0
  37. package/dist/chunk-3VXYG7KG.mjs +64 -0
  38. package/dist/chunk-3WPRVYF6.mjs +122 -0
  39. package/dist/chunk-452UKZW6.mjs +471 -0
  40. package/dist/chunk-4DFGIDVN.mjs +117 -0
  41. package/dist/chunk-4FM6S5CX.mjs +17 -0
  42. package/dist/chunk-4GQOUCX6.mjs +0 -0
  43. package/dist/chunk-4UTXEJBF.mjs +128 -0
  44. package/dist/chunk-4XSXVVYD.mjs +18 -0
  45. package/dist/chunk-535OVBXR.mjs +226 -0
  46. package/dist/chunk-54IEHX46.mjs +116 -0
  47. package/dist/chunk-5DXB7NNX.mjs +221 -0
  48. package/dist/chunk-5Q74GF5H.mjs +94 -0
  49. package/dist/chunk-5SAFO54D.mjs +56 -0
  50. package/dist/chunk-6GU6IDUA.mjs +8 -0
  51. package/dist/chunk-6HTZNHPT.mjs +34 -0
  52. package/dist/chunk-6T6CP246.mjs +340 -0
  53. package/dist/chunk-774WSTCC.mjs +19 -0
  54. package/dist/chunk-7AXHHXCX.mjs +4 -0
  55. package/dist/chunk-7M2A645H.mjs +63 -0
  56. package/dist/chunk-7PCPPVXC.mjs +175 -0
  57. package/dist/chunk-AM2BU2RH.mjs +6 -0
  58. package/dist/chunk-B2FDWFGX.mjs +171 -0
  59. package/dist/chunk-B4QEDA23.mjs +97 -0
  60. package/dist/chunk-B6ZOPCPA.mjs +73 -0
  61. package/dist/chunk-BALV2UTZ.mjs +24 -0
  62. package/dist/chunk-BBP7EYBG.mjs +260 -0
  63. package/dist/chunk-BCEWAWGA.mjs +39 -0
  64. package/dist/chunk-BD3XDAG5.mjs +401 -0
  65. package/dist/chunk-BGATYAVC.mjs +47 -0
  66. package/dist/chunk-BZ3BUDOK.mjs +4113 -0
  67. package/dist/chunk-C5P5PL3E.mjs +31 -0
  68. package/dist/chunk-C76H5USB.mjs +16 -0
  69. package/dist/chunk-C7F7MMXS.mjs +68 -0
  70. package/dist/chunk-CABJXU6D.mjs +302 -0
  71. package/dist/chunk-CBSCX7RE.mjs +13 -0
  72. package/dist/chunk-CG3YNOEK.mjs +144 -0
  73. package/dist/chunk-CNZM6RE7.mjs +610 -0
  74. package/dist/chunk-CQWBG33R.mjs +30 -0
  75. package/dist/chunk-CRBKNYSH.mjs +275 -0
  76. package/dist/chunk-D3YQN7HV.mjs +30 -0
  77. package/dist/chunk-DFFLVEZ5.mjs +40 -0
  78. package/dist/chunk-DG7J63J2.mjs +1764 -0
  79. package/dist/chunk-DHF3B6D2.mjs +9 -0
  80. package/dist/chunk-DK4WIVY6.mjs +749 -0
  81. package/dist/chunk-DKOD27V5.mjs +175 -0
  82. package/dist/chunk-DLZWPHHO.mjs +20 -0
  83. package/dist/chunk-DTY37DDZ.mjs +20 -0
  84. package/dist/chunk-DXWAKJTM.mjs +108 -0
  85. package/dist/chunk-EAZDQKZL.mjs +259 -0
  86. package/dist/chunk-EFEGJQI5.mjs +34 -0
  87. package/dist/chunk-EG5MMCD4.mjs +50 -0
  88. package/dist/chunk-EHAU7SOS.mjs +1280 -0
  89. package/dist/chunk-EKFF2W4G.mjs +124 -0
  90. package/dist/chunk-EN5J6OFE.mjs +41 -0
  91. package/dist/chunk-EO7CNFE6.mjs +265 -0
  92. package/dist/chunk-EVPLJRXF.mjs +123 -0
  93. package/dist/chunk-EVY7AHQA.mjs +50 -0
  94. package/dist/chunk-EZGBAGIR.mjs +310 -0
  95. package/dist/chunk-F57Z263P.mjs +36 -0
  96. package/dist/chunk-F6ZOHZVB.mjs +9 -0
  97. package/dist/chunk-FA2DYBNX.mjs +6 -0
  98. package/dist/chunk-FHSC5X62.mjs +31 -0
  99. package/dist/chunk-FUDIA3GL.mjs +39 -0
  100. package/dist/chunk-FVMHCXYX.mjs +106 -0
  101. package/dist/chunk-FX5GXN2P.mjs +164 -0
  102. package/dist/chunk-FXYH54JP.mjs +16 -0
  103. package/dist/chunk-G22WWLPG.mjs +44 -0
  104. package/dist/chunk-G2GBTFKW.mjs +522 -0
  105. package/dist/chunk-G2J2T2QU.mjs +85 -0
  106. package/dist/chunk-G2VJOHHV.mjs +32 -0
  107. package/dist/chunk-G4M37GFI.mjs +98061 -0
  108. package/dist/chunk-G57B6U6Y.mjs +41 -0
  109. package/dist/chunk-GBFVWROS.mjs +58 -0
  110. package/dist/chunk-GF7N2AY2.mjs +79 -0
  111. package/dist/chunk-GGTFPFCV.mjs +1150 -0
  112. package/dist/chunk-HE77DA46.mjs +108 -0
  113. package/dist/chunk-HKYVPRUA.mjs +182 -0
  114. package/dist/chunk-HVQIZLNB.mjs +108 -0
  115. package/dist/chunk-I2GUUJVE.mjs +127 -0
  116. package/dist/chunk-IR5DHEKS.mjs +9 -0
  117. package/dist/chunk-IU262EDH.mjs +495 -0
  118. package/dist/chunk-IUCDCPJU.mjs +0 -0
  119. package/dist/chunk-IW4TACOD.mjs +55 -0
  120. package/dist/chunk-IXXG72CP.mjs +422 -0
  121. package/dist/chunk-JHATTPS3.mjs +6 -0
  122. package/dist/chunk-JO7JAVWB.mjs +170 -0
  123. package/dist/chunk-JQ67EF5F.mjs +101 -0
  124. package/dist/chunk-K5DSJBZS.mjs +556 -0
  125. package/dist/chunk-KA4KBTUN.mjs +29 -0
  126. package/dist/chunk-KIASDQKH.mjs +51 -0
  127. package/dist/chunk-KPLL3ATX.mjs +97 -0
  128. package/dist/chunk-L7YA4D55.mjs +61 -0
  129. package/dist/chunk-LEYWBRRG.mjs +225 -0
  130. package/dist/chunk-LKWTBYYC.mjs +35 -0
  131. package/dist/chunk-LLJB2TFN.mjs +50 -0
  132. package/dist/chunk-LQTHYS2Z.mjs +0 -0
  133. package/dist/chunk-LSEYENCI.mjs +14 -0
  134. package/dist/chunk-LT4MVCA7.mjs +19 -0
  135. package/dist/chunk-LWUDSTVZ.mjs +128 -0
  136. package/dist/chunk-LXIJHOSW.mjs +43 -0
  137. package/dist/chunk-LZX5TJ65.mjs +42 -0
  138. package/dist/chunk-MFALVTRQ.mjs +181 -0
  139. package/dist/chunk-MKJPYPAH.mjs +516 -0
  140. package/dist/chunk-MOSRJHJ3.mjs +31 -0
  141. package/dist/chunk-N7BIDSR6.mjs +45 -0
  142. package/dist/chunk-ND3ODI36.mjs +161 -0
  143. package/dist/chunk-NOAFLTPV.mjs +99 -0
  144. package/dist/chunk-NPOS27VN.mjs +29 -0
  145. package/dist/chunk-NQMO3WSW.mjs +98 -0
  146. package/dist/chunk-NSKLCNSB.mjs +1106 -0
  147. package/dist/chunk-NTEWUH4C.mjs +65 -0
  148. package/dist/chunk-NUHHTFNL.mjs +1144 -0
  149. package/dist/chunk-OAHCJFG3.mjs +17 -0
  150. package/dist/chunk-OK4NIKP5.mjs +84 -0
  151. package/dist/chunk-OMC5JCQH.mjs +31 -0
  152. package/dist/chunk-OWHSIJ2H.mjs +37 -0
  153. package/dist/chunk-P3DRE4IY.mjs +39 -0
  154. package/dist/chunk-P3UUX2T6.mjs +9 -0
  155. package/dist/chunk-P3VJXF6S.mjs +345 -0
  156. package/dist/chunk-PB5SVVN2.mjs +117 -0
  157. package/dist/chunk-PEZUM4LH.mjs +174 -0
  158. package/dist/chunk-PMA2D6IL.mjs +49 -0
  159. package/dist/chunk-PQGZLPCG.mjs +61 -0
  160. package/dist/chunk-PXZ7QYKX.mjs +14 -0
  161. package/dist/chunk-PYIO3TDQ.mjs +18 -0
  162. package/dist/chunk-QAFVGV7P.mjs +47 -0
  163. package/dist/chunk-QDRW4DAC.mjs +363 -0
  164. package/dist/chunk-QJ6SBVJ2.mjs +17 -0
  165. package/dist/chunk-QKARRHBY.mjs +146 -0
  166. package/dist/chunk-QNGB3OCG.mjs +391 -0
  167. package/dist/chunk-QVJ6Q4XS.mjs +157 -0
  168. package/dist/chunk-QZ5QAA5L.mjs +89 -0
  169. package/dist/chunk-QZ7TP4HQ.mjs +7 -0
  170. package/dist/chunk-R65S6ZZV.mjs +70 -0
  171. package/dist/chunk-RIV7FKGN.mjs +31 -0
  172. package/dist/chunk-RPAL6FHW.mjs +73 -0
  173. package/dist/chunk-RREPQMYC.mjs +116 -0
  174. package/dist/chunk-S3REQHPQ.mjs +86 -0
  175. package/dist/chunk-S4DMV3ZT.mjs +35 -0
  176. package/dist/chunk-SC6BSTC7.mjs +38 -0
  177. package/dist/chunk-SLYFSTN7.mjs +824 -0
  178. package/dist/chunk-SZXVOG6N.mjs +42 -0
  179. package/dist/chunk-T7THKDM2.mjs +132 -0
  180. package/dist/chunk-TCNCAWYD.mjs +9 -0
  181. package/dist/chunk-TDK3JDOB.mjs +31 -0
  182. package/dist/chunk-TNJMHOGZ.mjs +34 -0
  183. package/dist/chunk-TU3OVBKQ.mjs +87 -0
  184. package/dist/chunk-TXO6ZWHH.mjs +79 -0
  185. package/dist/chunk-U7I66IFZ.mjs +88 -0
  186. package/dist/chunk-UC26CCHZ.mjs +45 -0
  187. package/dist/chunk-UCZNM66J.mjs +22 -0
  188. package/dist/chunk-ULSPL3DR.mjs +126 -0
  189. package/dist/chunk-UVPCTLA2.mjs +79 -0
  190. package/dist/chunk-V7OUZM56.mjs +83 -0
  191. package/dist/chunk-VAO4P4YN.mjs +44 -0
  192. package/dist/chunk-W4OT76ZB.mjs +23 -0
  193. package/dist/chunk-W7625H47.mjs +18 -0
  194. package/dist/chunk-WATKBUHQ.mjs +12 -0
  195. package/dist/chunk-WILMJYUB.mjs +35 -0
  196. package/dist/chunk-WJ4YB5O4.mjs +87 -0
  197. package/dist/chunk-WKOPGFW5.mjs +8 -0
  198. package/dist/chunk-WMOGMKQN.mjs +0 -0
  199. package/dist/chunk-WRSGHGAT.mjs +41 -0
  200. package/dist/chunk-X4LMDPH5.mjs +52 -0
  201. package/dist/chunk-X6BAAGCL.mjs +48 -0
  202. package/dist/chunk-XIM7X4FB.mjs +83 -0
  203. package/dist/chunk-XIWUBH6W.mjs +37 -0
  204. package/dist/chunk-XJYL2XTV.mjs +280 -0
  205. package/dist/chunk-XP4VHZBM.mjs +162 -0
  206. package/dist/chunk-XR4GEMGR.mjs +31 -0
  207. package/dist/chunk-XRTVFYCW.mjs +0 -0
  208. package/dist/chunk-XU4GD2XM.mjs +360 -0
  209. package/dist/chunk-XUQVQCAO.mjs +16 -0
  210. package/dist/chunk-YF6NQZGM.mjs +78 -0
  211. package/dist/chunk-YOYOJU5D.mjs +0 -0
  212. package/dist/chunk-YVPTNVHA.mjs +792 -0
  213. package/dist/chunk-YWU55M6Z.mjs +183 -0
  214. package/dist/chunk-Z5LP57ST.mjs +160 -0
  215. package/dist/chunk-ZFCG2354.mjs +98 -0
  216. package/dist/chunk-ZGI57SVH.mjs +49 -0
  217. package/dist/chunk-ZNSZ45XP.mjs +193 -0
  218. package/dist/chunk-ZQRKUG6J.mjs +72 -0
  219. package/dist/collection-add-products-IY6FQ72Q.mjs +287 -0
  220. package/dist/collection-create-HT3M5GN2.mjs +134 -0
  221. package/dist/collection-detail-B2ITEYFM.mjs +469 -0
  222. package/dist/collection-edit-XFZ2MCJM.mjs +125 -0
  223. package/dist/collection-list-XOQQ2LT2.mjs +257 -0
  224. package/dist/collection-metadata-3EZ5FMJI.mjs +73 -0
  225. package/dist/customer-create-PGX4DCTL.mjs +183 -0
  226. package/dist/customer-create-address-QOU74N6J.mjs +293 -0
  227. package/dist/customer-detail-HUXNR3Y5.mjs +706 -0
  228. package/dist/customer-edit-T4TG2APF.mjs +194 -0
  229. package/dist/customer-group-add-customers-62EAFEKD.mjs +244 -0
  230. package/dist/customer-group-create-QE5D76WG.mjs +113 -0
  231. package/dist/customer-group-detail-PE3DCMPC.mjs +437 -0
  232. package/dist/customer-group-edit-O3TX6KF5.mjs +110 -0
  233. package/dist/customer-group-list-IXQNLETU.mjs +268 -0
  234. package/dist/customer-group-metadata-FKKGWCL3.mjs +44 -0
  235. package/dist/customer-list-M7XWLNDQ.mjs +163 -0
  236. package/dist/customer-metadata-72M7HMZU.mjs +44 -0
  237. package/dist/customers-add-customer-group-B6KORLWA.mjs +279 -0
  238. package/dist/edit-inventory-item-44J2OXJL.mjs +130 -0
  239. package/dist/edit-inventory-item-attributes-S3HC6QLQ.mjs +297 -0
  240. package/dist/edit-reservation-LOB3RJ7B.mjs +249 -0
  241. package/dist/edit-rules-HUMVN4MD.mjs +272 -0
  242. package/dist/en.json +3311 -0
  243. package/dist/home-KFQGXKRT.mjs +16 -0
  244. package/dist/index.d.ts +10 -0
  245. package/dist/inventory-create-ZPUOJP7S.mjs +599 -0
  246. package/dist/inventory-detail-IBGA6OJ5.mjs +751 -0
  247. package/dist/inventory-list-4C5Z7CC5.mjs +413 -0
  248. package/dist/inventory-metadata-774S7FV4.mjs +74 -0
  249. package/dist/inventory-stock-RBIJMUBV.mjs +293 -0
  250. package/dist/invite-3KUCHUTF.mjs +362 -0
  251. package/dist/location-create-YRQYKOVU.mjs +240 -0
  252. package/dist/location-detail-F6MVSFSE.mjs +823 -0
  253. package/dist/location-edit-RZAKOXKH.mjs +256 -0
  254. package/dist/location-fulfillment-providers-3ODKOKQV.mjs +291 -0
  255. package/dist/location-list-C4EDJMIE.mjs +323 -0
  256. package/dist/location-sales-channels-NFDU7PBR.mjs +189 -0
  257. package/dist/location-service-zone-create-KFEG2FP7.mjs +174 -0
  258. package/dist/location-service-zone-edit-RWWWYJ7O.mjs +137 -0
  259. package/dist/location-service-zone-manage-areas-GPWFFIBT.mjs +155 -0
  260. package/dist/location-service-zone-shipping-option-create-PB4OXW3T.mjs +796 -0
  261. package/dist/location-service-zone-shipping-option-edit-7ME3GVRL.mjs +368 -0
  262. package/dist/location-service-zone-shipping-option-pricing-E24IAV36.mjs +357 -0
  263. package/dist/login-WSXW2XIW.mjs +325 -0
  264. package/dist/manage-locations-4DGVNLYL.mjs +250 -0
  265. package/dist/no-match-4YRQTKJD.mjs +33 -0
  266. package/dist/order-allocate-items-LSVBTKPE.mjs +558 -0
  267. package/dist/order-create-claim-BS7QRFZT.mjs +2143 -0
  268. package/dist/order-create-edit-BNIKKD6R.mjs +772 -0
  269. package/dist/order-create-exchange-LZZOJKHY.mjs +2144 -0
  270. package/dist/order-create-fulfillment-YWEDORGR.mjs +610 -0
  271. package/dist/order-create-refund-J5FTOWGJ.mjs +690 -0
  272. package/dist/order-create-return-SI4UJIK5.mjs +1288 -0
  273. package/dist/order-create-shipment-M2TDSJP6.mjs +284 -0
  274. package/dist/order-detail-WTAGF6K5.mjs +3553 -0
  275. package/dist/order-edit-billing-address-RYPXALHJ.mjs +300 -0
  276. package/dist/order-edit-email-Y5YD24FI.mjs +148 -0
  277. package/dist/order-edit-shipping-address-5G5S5JG2.mjs +297 -0
  278. package/dist/order-export-HCIPFZXG.mjs +131 -0
  279. package/dist/order-list-4JYZ5PVV.mjs +330 -0
  280. package/dist/order-metadata-IG4BXARU.mjs +73 -0
  281. package/dist/order-receive-return-I6LBDB3Q.mjs +554 -0
  282. package/dist/order-request-transfer-EMUBP52T.mjs +575 -0
  283. package/dist/price-list-configuration-HAVZ2V7E.mjs +355 -0
  284. package/dist/price-list-create-RAZUHESH.mjs +960 -0
  285. package/dist/price-list-detail-TNP75PRJ.mjs +559 -0
  286. package/dist/price-list-edit-7SW7BUF4.mjs +227 -0
  287. package/dist/price-list-list-5N5HJPM3.mjs +251 -0
  288. package/dist/price-list-prices-add-7IEBI6VR.mjs +615 -0
  289. package/dist/price-list-prices-edit-JHHVHIK3.mjs +313 -0
  290. package/dist/product-attributes-FZN5FBTN.mjs +340 -0
  291. package/dist/product-create-KOARKVLW.mjs +2231 -0
  292. package/dist/product-create-option-NPEDGHZE.mjs +151 -0
  293. package/dist/product-create-variant-43Y5RF3E.mjs +823 -0
  294. package/dist/product-detail-IN2O5DEF.mjs +1256 -0
  295. package/dist/product-edit-RLW4J3UB.mjs +313 -0
  296. package/dist/product-edit-option-66YVWG6O.mjs +157 -0
  297. package/dist/product-export-YAB56R6E.mjs +131 -0
  298. package/dist/product-image-variants-edit-LUKL275V.mjs +334 -0
  299. package/dist/product-import-AX6Q42LM.mjs +268 -0
  300. package/dist/product-list-TF24QRNG.mjs +459 -0
  301. package/dist/product-media-3DQ2LIUB.mjs +701 -0
  302. package/dist/product-metadata-7SAZ35AT.mjs +74 -0
  303. package/dist/product-organization-YN7YXIWS.mjs +281 -0
  304. package/dist/product-prices-LOUY77V4.mjs +227 -0
  305. package/dist/product-sales-channels-S2OD4436.mjs +165 -0
  306. package/dist/product-shipping-profile-WD6LOI4M.mjs +145 -0
  307. package/dist/product-stock-HZRHSEDF.mjs +545 -0
  308. package/dist/product-tag-create-UUM4ZE2M.mjs +127 -0
  309. package/dist/product-tag-detail-W6M2LEQR.mjs +304 -0
  310. package/dist/product-tag-edit-674OSZZH.mjs +140 -0
  311. package/dist/product-tag-list-RXZFET7E.mjs +282 -0
  312. package/dist/product-tag-metadata-GRLX3C2Q.mjs +73 -0
  313. package/dist/product-type-create-XY5BE533.mjs +103 -0
  314. package/dist/product-type-detail-22ZHL6DS.mjs +265 -0
  315. package/dist/product-type-edit-M2U7YUJD.mjs +117 -0
  316. package/dist/product-type-list-3JY7CTAA.mjs +201 -0
  317. package/dist/product-type-metadata-PSRCZKDV.mjs +73 -0
  318. package/dist/product-variant-detail-4F6IX6MM.mjs +571 -0
  319. package/dist/product-variant-edit-IRUNIAYG.mjs +539 -0
  320. package/dist/product-variant-manage-inventory-items-ET6YPQP3.mjs +343 -0
  321. package/dist/product-variant-media-DRT5DE5P.mjs +376 -0
  322. package/dist/product-variant-metadata-HRVK7DEZ.mjs +77 -0
  323. package/dist/profile-detail-VNUJILTO.mjs +96 -0
  324. package/dist/profile-edit-TFV42P22.mjs +177 -0
  325. package/dist/promotion-add-campaign-HB2IHPPX.mjs +45 -0
  326. package/dist/promotion-create-S6FP2NTH.mjs +1227 -0
  327. package/dist/promotion-detail-AECYBJWT.mjs +509 -0
  328. package/dist/promotion-edit-details-2UNVLLBP.mjs +498 -0
  329. package/dist/promotion-list-PYMKNPW3.mjs +216 -0
  330. package/dist/refund-reason-create-75WFVL5X.mjs +195 -0
  331. package/dist/refund-reason-edit-JLIAOA54.mjs +196 -0
  332. package/dist/refund-reason-list-EWXWKRUP.mjs +246 -0
  333. package/dist/region-add-countries-FH7WTMU5.mjs +223 -0
  334. package/dist/region-create-2T4MWC4Z.mjs +497 -0
  335. package/dist/region-detail-B3GUB37B.mjs +494 -0
  336. package/dist/region-edit-2FSEVLOP.mjs +310 -0
  337. package/dist/region-list-QEADKLOY.mjs +215 -0
  338. package/dist/region-metadata-NFYAHB2F.mjs +74 -0
  339. package/dist/reservation-create-ND6DSNKT.mjs +312 -0
  340. package/dist/reservation-detail-YBOFICEP.mjs +235 -0
  341. package/dist/reservation-list-K44BOK7R.mjs +302 -0
  342. package/dist/reservation-metadata-PDKWSVYX.mjs +74 -0
  343. package/dist/reset-password-E7TYBPPE.mjs +381 -0
  344. package/dist/return-reason-create-MGNM7VYN.mjs +163 -0
  345. package/dist/return-reason-edit-OM3Y5MMI.mjs +168 -0
  346. package/dist/return-reason-list-7SNQPIIW.mjs +245 -0
  347. package/dist/sales-channel-add-products-ZHJ3AGRH.mjs +274 -0
  348. package/dist/sales-channel-create-XG3PEX3G.mjs +156 -0
  349. package/dist/sales-channel-detail-XFSOLMFO.mjs +442 -0
  350. package/dist/sales-channel-edit-DG27YNYG.mjs +166 -0
  351. package/dist/sales-channel-list-AJ6P4KAT.mjs +207 -0
  352. package/dist/sales-channel-metadata-BA3SFE2P.mjs +79 -0
  353. package/dist/settings-FKUZ6EYT.mjs +19 -0
  354. package/dist/settings-KJGPXBDJ.mjs +549 -0
  355. package/dist/shipping-option-type-create-HDNTVL56.mjs +198 -0
  356. package/dist/shipping-option-type-detail-RLTKAAQK.mjs +180 -0
  357. package/dist/shipping-option-type-edit-KEDMAP7J.mjs +197 -0
  358. package/dist/shipping-option-type-list-L5PZ7ZFM.mjs +279 -0
  359. package/dist/shipping-profile-create-Z7XRDHU3.mjs +125 -0
  360. package/dist/shipping-profile-detail-AYYBFPSQ.mjs +165 -0
  361. package/dist/shipping-profile-metadata-35WEIPZB.mjs +75 -0
  362. package/dist/shipping-profiles-list-YSYM46QD.mjs +251 -0
  363. package/dist/store-add-currencies-QGLOAIJO.mjs +300 -0
  364. package/dist/store-add-locales-72674T3W.mjs +82 -0
  365. package/dist/store-detail-VKOWH3SL.mjs +781 -0
  366. package/dist/store-edit-XCBTEI35.mjs +247 -0
  367. package/dist/store-metadata-V4SGUYKY.mjs +72 -0
  368. package/dist/tax-region-create-G3BOD6C5.mjs +301 -0
  369. package/dist/tax-region-detail-FS6ZNEAI.mjs +388 -0
  370. package/dist/tax-region-edit-INVOVYED.mjs +167 -0
  371. package/dist/tax-region-list-KQP4Q3E5.mjs +100 -0
  372. package/dist/tax-region-province-create-OFPOZSXU.mjs +312 -0
  373. package/dist/tax-region-province-detail-RN64NGAZ.mjs +280 -0
  374. package/dist/tax-region-tax-override-create-3Q56UJRX.mjs +681 -0
  375. package/dist/tax-region-tax-override-edit-LJ7AI3XV.mjs +273 -0
  376. package/dist/tax-region-tax-rate-create-VXJ3UZTT.mjs +195 -0
  377. package/dist/tax-region-tax-rate-edit-PBFVAWDZ.mjs +195 -0
  378. package/dist/translation-list-77WQA3S6.mjs +582 -0
  379. package/dist/translations-edit-2ASRTZ77.mjs +674 -0
  380. package/dist/user-detail-PHL64WWP.mjs +172 -0
  381. package/dist/user-edit-33WO64ER.mjs +118 -0
  382. package/dist/user-invite-F5D5RCWB.mjs +343 -0
  383. package/dist/user-list-IL65REDJ.mjs +165 -0
  384. package/dist/user-metadata-OUQI74YV.mjs +74 -0
  385. package/dist/workflow-execution-detail-7U67F575.mjs +840 -0
  386. package/dist/workflow-execution-list-54WC7PFS.mjs +179 -0
  387. package/package.json +89 -0
  388. package/src/app.tsx +34 -0
  389. package/src/assets/fonts/Inter-Medium.ttf +0 -0
  390. package/src/assets/fonts/Inter-Regular.ttf +0 -0
  391. package/src/assets/fonts/RobotoMono-Medium.ttf +0 -0
  392. package/src/assets/fonts/RobotoMono-Regular.ttf +0 -0
  393. package/src/components/authentication/protected-route/index.ts +1 -0
  394. package/src/components/authentication/protected-route/protected-route.tsx +30 -0
  395. package/src/components/common/action-menu/action-menu.tsx +125 -0
  396. package/src/components/common/action-menu/index.ts +1 -0
  397. package/src/components/common/badge-list-summary/badge-list-summary.tsx +81 -0
  398. package/src/components/common/badge-list-summary/index.ts +1 -0
  399. package/src/components/common/chip-group/chip-group.tsx +111 -0
  400. package/src/components/common/chip-group/index.ts +1 -0
  401. package/src/components/common/conditional-tooltip/conditional-tooltip.tsx +20 -0
  402. package/src/components/common/conditional-tooltip/index.ts +1 -0
  403. package/src/components/common/customer-info/customer-info.tsx +202 -0
  404. package/src/components/common/customer-info/index.ts +1 -0
  405. package/src/components/common/date-range-display/date-range-display.tsx +73 -0
  406. package/src/components/common/date-range-display/index.ts +1 -0
  407. package/src/components/common/display-id/display-id.tsx +30 -0
  408. package/src/components/common/display-id/index.ts +1 -0
  409. package/src/components/common/empty-table-content/empty-table-content.tsx +106 -0
  410. package/src/components/common/empty-table-content/index.ts +1 -0
  411. package/src/components/common/file-preview/file-preview.tsx +130 -0
  412. package/src/components/common/file-preview/index.ts +1 -0
  413. package/src/components/common/file-upload/file-upload.tsx +156 -0
  414. package/src/components/common/file-upload/index.ts +1 -0
  415. package/src/components/common/form/form.tsx +222 -0
  416. package/src/components/common/form/index.ts +1 -0
  417. package/src/components/common/icon-avatar/icon-avatar.tsx +42 -0
  418. package/src/components/common/icon-avatar/index.ts +1 -0
  419. package/src/components/common/infinite-list/index.ts +1 -0
  420. package/src/components/common/infinite-list/infinite-list.tsx +156 -0
  421. package/src/components/common/json-view-section/index.ts +1 -0
  422. package/src/components/common/json-view-section/json-view-section.tsx +201 -0
  423. package/src/components/common/link-button/index.ts +1 -0
  424. package/src/components/common/link-button/link-button.tsx +29 -0
  425. package/src/components/common/list-summary/index.ts +1 -0
  426. package/src/components/common/list-summary/list-summary.tsx +70 -0
  427. package/src/components/common/listicle/index.ts +1 -0
  428. package/src/components/common/listicle/listicle.tsx +34 -0
  429. package/src/components/common/logo-box/avatar-box.tsx +87 -0
  430. package/src/components/common/logo-box/index.ts +2 -0
  431. package/src/components/common/logo-box/logo-box.tsx +74 -0
  432. package/src/components/common/metadata-section/index.ts +1 -0
  433. package/src/components/common/metadata-section/metadata-section.tsx +49 -0
  434. package/src/components/common/progress-bar/index.ts +1 -0
  435. package/src/components/common/progress-bar/progress-bar.tsx +33 -0
  436. package/src/components/common/section/index.ts +1 -0
  437. package/src/components/common/section/section-row.tsx +41 -0
  438. package/src/components/common/segmented-control/index.ts +2 -0
  439. package/src/components/common/segmented-control/segmented-control.tsx +53 -0
  440. package/src/components/common/sidebar-link/indext.ts +1 -0
  441. package/src/components/common/sidebar-link/sidebar-link.tsx +47 -0
  442. package/src/components/common/skeleton/index.ts +1 -0
  443. package/src/components/common/skeleton/skeleton.tsx +327 -0
  444. package/src/components/common/sortable-list/index.ts +1 -0
  445. package/src/components/common/sortable-list/sortable-list.tsx +228 -0
  446. package/src/components/common/sortable-tree/index.ts +1 -0
  447. package/src/components/common/sortable-tree/keyboard-coordinates.ts +156 -0
  448. package/src/components/common/sortable-tree/sortable-tree-item.tsx +62 -0
  449. package/src/components/common/sortable-tree/sortable-tree.tsx +379 -0
  450. package/src/components/common/sortable-tree/tree-item.tsx +207 -0
  451. package/src/components/common/sortable-tree/types.ts +23 -0
  452. package/src/components/common/sortable-tree/utils.ts +299 -0
  453. package/src/components/common/switch-box/index.ts +1 -0
  454. package/src/components/common/switch-box/switch-box.tsx +76 -0
  455. package/src/components/common/tax-badge/tax-badge.tsx +30 -0
  456. package/src/components/common/thumbnail/index.ts +1 -0
  457. package/src/components/common/thumbnail/thumbnail.tsx +32 -0
  458. package/src/components/common/user-link/index.ts +1 -0
  459. package/src/components/common/user-link/user-link.tsx +45 -0
  460. package/src/components/data-grid/components/data-grid-boolean-cell.tsx +71 -0
  461. package/src/components/data-grid/components/data-grid-cell-container.tsx +97 -0
  462. package/src/components/data-grid/components/data-grid-country-select-cell.tsx +149 -0
  463. package/src/components/data-grid/components/data-grid-currency-cell.tsx +140 -0
  464. package/src/components/data-grid/components/data-grid-duplicate-cell.tsx +21 -0
  465. package/src/components/data-grid/components/data-grid-keyboard-shortcut-modal.tsx +245 -0
  466. package/src/components/data-grid/components/data-grid-multiline-cell.tsx +103 -0
  467. package/src/components/data-grid/components/data-grid-number-cell.tsx +94 -0
  468. package/src/components/data-grid/components/data-grid-readonly-cell.tsx +43 -0
  469. package/src/components/data-grid/components/data-grid-root.tsx +1156 -0
  470. package/src/components/data-grid/components/data-grid-row-error-indicator.tsx +55 -0
  471. package/src/components/data-grid/components/data-grid-select-cell.tsx +55 -0
  472. package/src/components/data-grid/components/data-grid-skeleton.tsx +63 -0
  473. package/src/components/data-grid/components/data-grid-text-cell.tsx +75 -0
  474. package/src/components/data-grid/components/data-grid-textarea-modal-cell.tsx +233 -0
  475. package/src/components/data-grid/components/data-grid-toggleable-number-cell.tsx +206 -0
  476. package/src/components/data-grid/components/index.ts +9 -0
  477. package/src/components/data-grid/context/data-grid-context.tsx +45 -0
  478. package/src/components/data-grid/context/index.ts +2 -0
  479. package/src/components/data-grid/context/use-data-grid-context.tsx +14 -0
  480. package/src/components/data-grid/data-grid.tsx +56 -0
  481. package/src/components/data-grid/helpers/create-data-grid-column-helper.ts +93 -0
  482. package/src/components/data-grid/helpers/create-data-grid-price-columns.tsx +136 -0
  483. package/src/components/data-grid/helpers/index.ts +2 -0
  484. package/src/components/data-grid/hooks/index.ts +14 -0
  485. package/src/components/data-grid/hooks/use-data-grid-cell-error.tsx +78 -0
  486. package/src/components/data-grid/hooks/use-data-grid-cell-handlers.tsx +162 -0
  487. package/src/components/data-grid/hooks/use-data-grid-cell-metadata.tsx +75 -0
  488. package/src/components/data-grid/hooks/use-data-grid-cell-snapshot.tsx +75 -0
  489. package/src/components/data-grid/hooks/use-data-grid-cell.tsx +257 -0
  490. package/src/components/data-grid/hooks/use-data-grid-clipboard-events.tsx +105 -0
  491. package/src/components/data-grid/hooks/use-data-grid-column-visibility.tsx +68 -0
  492. package/src/components/data-grid/hooks/use-data-grid-duplicate-cell.tsx +18 -0
  493. package/src/components/data-grid/hooks/use-data-grid-error-highlighting.tsx +133 -0
  494. package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +237 -0
  495. package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +732 -0
  496. package/src/components/data-grid/hooks/use-data-grid-mouse-up-event.tsx +96 -0
  497. package/src/components/data-grid/hooks/use-data-grid-navigation.tsx +113 -0
  498. package/src/components/data-grid/hooks/use-data-grid-query-tool.tsx +15 -0
  499. package/src/components/data-grid/index.ts +2 -0
  500. package/src/components/data-grid/models/data-grid-bulk-update-command.ts +38 -0
  501. package/src/components/data-grid/models/data-grid-matrix.ts +421 -0
  502. package/src/components/data-grid/models/data-grid-query-tool.ts +74 -0
  503. package/src/components/data-grid/models/data-grid-update-command.ts +33 -0
  504. package/src/components/data-grid/models/index.ts +5 -0
  505. package/src/components/data-grid/types.ts +173 -0
  506. package/src/components/data-grid/utils.ts +28 -0
  507. package/src/components/data-table/components/data-table-status-cell/data-table-status-cell.tsx +35 -0
  508. package/src/components/data-table/data-table.tsx +545 -0
  509. package/src/components/data-table/helpers/general/use-data-table-date-columns.tsx +61 -0
  510. package/src/components/data-table/helpers/general/use-data-table-date-filters.tsx +95 -0
  511. package/src/components/data-table/helpers/sales-channels/index.ts +4 -0
  512. package/src/components/data-table/helpers/sales-channels/use-sales-channel-table-columns.tsx +61 -0
  513. package/src/components/data-table/helpers/sales-channels/use-sales-channel-table-empty-state.tsx +22 -0
  514. package/src/components/data-table/helpers/sales-channels/use-sales-channel-table-filters.tsx +33 -0
  515. package/src/components/data-table/helpers/sales-channels/use-sales-channel-table-query.tsx +30 -0
  516. package/src/components/data-table/index.ts +1 -0
  517. package/src/components/filtering/filter-group/filter-group.tsx +58 -0
  518. package/src/components/filtering/filter-group/index.ts +1 -0
  519. package/src/components/filtering/order-by/index.ts +1 -0
  520. package/src/components/filtering/order-by/order-by.tsx +151 -0
  521. package/src/components/filtering/query/index.ts +1 -0
  522. package/src/components/filtering/query/query.tsx +57 -0
  523. package/src/components/forms/address-form/address-form.tsx +228 -0
  524. package/src/components/forms/address-form/index.ts +1 -0
  525. package/src/components/forms/email-form/email-form.tsx +42 -0
  526. package/src/components/forms/email-form/index.ts +1 -0
  527. package/src/components/forms/metadata-form/index.ts +1 -0
  528. package/src/components/forms/metadata-form/metadata-form.tsx +438 -0
  529. package/src/components/inputs/chip-input/chip-input.tsx +191 -0
  530. package/src/components/inputs/chip-input/index.ts +1 -0
  531. package/src/components/inputs/combobox/combobox.tsx +422 -0
  532. package/src/components/inputs/combobox/index.ts +1 -0
  533. package/src/components/inputs/country-select/country-select.tsx +53 -0
  534. package/src/components/inputs/country-select/index.ts +1 -0
  535. package/src/components/inputs/handle-input/handle-input.tsx +24 -0
  536. package/src/components/inputs/handle-input/index.ts +1 -0
  537. package/src/components/inputs/percentage-input/index.ts +1 -0
  538. package/src/components/inputs/percentage-input/percentage-input.tsx +105 -0
  539. package/src/components/inputs/province-select/index.ts +1 -0
  540. package/src/components/inputs/province-select/province-select.tsx +91 -0
  541. package/src/components/layout/main-layout/index.ts +1 -0
  542. package/src/components/layout/main-layout/main-layout.tsx +389 -0
  543. package/src/components/layout/nav-item/index.ts +1 -0
  544. package/src/components/layout/nav-item/nav-item.tsx +254 -0
  545. package/src/components/layout/notifications/index.ts +1 -0
  546. package/src/components/layout/notifications/notifications.tsx +232 -0
  547. package/src/components/layout/pages/index.ts +2 -0
  548. package/src/components/layout/pages/single-column-page/index.ts +1 -0
  549. package/src/components/layout/pages/single-column-page/single-column-page.tsx +63 -0
  550. package/src/components/layout/pages/two-column-page/index.ts +1 -0
  551. package/src/components/layout/pages/two-column-page/two-column-page.tsx +141 -0
  552. package/src/components/layout/pages/types.ts +15 -0
  553. package/src/components/layout/public-layout/index.ts +1 -0
  554. package/src/components/layout/public-layout/public-layout.tsx +5 -0
  555. package/src/components/layout/settings-layout/index.ts +1 -0
  556. package/src/components/layout/settings-layout/settings-layout.tsx +266 -0
  557. package/src/components/layout/shell/index.ts +1 -0
  558. package/src/components/layout/shell/shell.tsx +263 -0
  559. package/src/components/layout/user-menu/index.ts +1 -0
  560. package/src/components/layout/user-menu/user-menu.tsx +344 -0
  561. package/src/components/localization/localized-table-pagination/index.ts +1 -0
  562. package/src/components/localization/localized-table-pagination/localized-table-pagination.tsx +26 -0
  563. package/src/components/modals/hooks/use-state-aware-to.tsx +32 -0
  564. package/src/components/modals/index.ts +7 -0
  565. package/src/components/modals/route-drawer/index.ts +1 -0
  566. package/src/components/modals/route-drawer/route-drawer.tsx +82 -0
  567. package/src/components/modals/route-focus-modal/index.ts +1 -0
  568. package/src/components/modals/route-focus-modal/route-focus-modal.tsx +109 -0
  569. package/src/components/modals/route-modal-form/index.ts +1 -0
  570. package/src/components/modals/route-modal-form/route-modal-form.tsx +93 -0
  571. package/src/components/modals/route-modal-provider/index.ts +2 -0
  572. package/src/components/modals/route-modal-provider/route-modal-context.tsx +12 -0
  573. package/src/components/modals/route-modal-provider/route-provider.tsx +51 -0
  574. package/src/components/modals/route-modal-provider/use-route-modal.tsx +12 -0
  575. package/src/components/modals/stacked-drawer/index.ts +1 -0
  576. package/src/components/modals/stacked-drawer/stacked-drawer.tsx +85 -0
  577. package/src/components/modals/stacked-focus-modal/index.ts +1 -0
  578. package/src/components/modals/stacked-focus-modal/stacked-focus-modal.tsx +98 -0
  579. package/src/components/modals/stacked-modal-provider/index.ts +2 -0
  580. package/src/components/modals/stacked-modal-provider/stacked-modal-context.tsx +10 -0
  581. package/src/components/modals/stacked-modal-provider/stacked-modal-provider.tsx +54 -0
  582. package/src/components/modals/stacked-modal-provider/use-stacked-modal.ts +14 -0
  583. package/src/components/search/constants.ts +30 -0
  584. package/src/components/search/index.ts +1 -0
  585. package/src/components/search/search.tsx +576 -0
  586. package/src/components/search/types.ts +20 -0
  587. package/src/components/search/use-search-results.tsx +752 -0
  588. package/src/components/table/configurable-data-table/configurable-data-table.tsx +240 -0
  589. package/src/components/table/configurable-data-table/index.ts +3 -0
  590. package/src/components/table/configurable-data-table/save-view-dropdown.tsx +87 -0
  591. package/src/components/table/data-table/data-table-filter/context.tsx +19 -0
  592. package/src/components/table/data-table/data-table-filter/data-table-filter.tsx +296 -0
  593. package/src/components/table/data-table/data-table-filter/date-filter.tsx +328 -0
  594. package/src/components/table/data-table/data-table-filter/filter-chip.tsx +97 -0
  595. package/src/components/table/data-table/data-table-filter/index.ts +1 -0
  596. package/src/components/table/data-table/data-table-filter/number-filter.tsx +316 -0
  597. package/src/components/table/data-table/data-table-filter/select-filter.tsx +201 -0
  598. package/src/components/table/data-table/data-table-filter/string-filter.tsx +125 -0
  599. package/src/components/table/data-table/data-table-filter/types.ts +9 -0
  600. package/src/components/table/data-table/data-table-order-by/data-table-order-by.tsx +153 -0
  601. package/src/components/table/data-table/data-table-order-by/index.ts +1 -0
  602. package/src/components/table/data-table/data-table-query/data-table-query.tsx +39 -0
  603. package/src/components/table/data-table/data-table-query/index.ts +1 -0
  604. package/src/components/table/data-table/data-table-root/data-table-root.tsx +382 -0
  605. package/src/components/table/data-table/data-table-root/index.ts +1 -0
  606. package/src/components/table/data-table/data-table-search/data-table-search.tsx +61 -0
  607. package/src/components/table/data-table/data-table-search/index.ts +1 -0
  608. package/src/components/table/data-table/data-table.tsx +96 -0
  609. package/src/components/table/data-table/hooks.tsx +73 -0
  610. package/src/components/table/data-table/index.ts +2 -0
  611. package/src/components/table/save-view-dialog/index.ts +1 -0
  612. package/src/components/table/save-view-dialog/save-view-dialog.tsx +163 -0
  613. package/src/components/table/save-view-dropdown/index.ts +1 -0
  614. package/src/components/table/save-view-dropdown/save-view-dropdown.tsx +88 -0
  615. package/src/components/table/table-cells/common/code-cell/code-cell.tsx +27 -0
  616. package/src/components/table/table-cells/common/code-cell/index.ts +1 -0
  617. package/src/components/table/table-cells/common/created-at-cell/created-at-cell.tsx +44 -0
  618. package/src/components/table/table-cells/common/created-at-cell/index.ts +1 -0
  619. package/src/components/table/table-cells/common/date-cell/date-cell.tsx +44 -0
  620. package/src/components/table/table-cells/common/date-cell/index.ts +1 -0
  621. package/src/components/table/table-cells/common/email-cell/email-cell.tsx +28 -0
  622. package/src/components/table/table-cells/common/email-cell/index.ts +1 -0
  623. package/src/components/table/table-cells/common/money-amount-cell/index.ts +1 -0
  624. package/src/components/table/table-cells/common/money-amount-cell/money-amount-cell.tsx +38 -0
  625. package/src/components/table/table-cells/common/name-cell/index.ts +1 -0
  626. package/src/components/table/table-cells/common/name-cell/name-cell.tsx +31 -0
  627. package/src/components/table/table-cells/common/placeholder-cell/index.ts +1 -0
  628. package/src/components/table/table-cells/common/placeholder-cell/placeholder-cell.tsx +7 -0
  629. package/src/components/table/table-cells/common/status-cell/index.ts +1 -0
  630. package/src/components/table/table-cells/common/status-cell/status-cell.tsx +35 -0
  631. package/src/components/table/table-cells/common/text-cell/index.ts +1 -0
  632. package/src/components/table/table-cells/common/text-cell/text-cell.tsx +49 -0
  633. package/src/components/table/table-cells/customer/account-cell/account-cell.tsx +27 -0
  634. package/src/components/table/table-cells/customer/first-seen-cell/first-seen-cell.tsx +25 -0
  635. package/src/components/table/table-cells/customer/first-seen-cell/index.ts +1 -0
  636. package/src/components/table/table-cells/order/country-cell/country-cell.tsx +36 -0
  637. package/src/components/table/table-cells/order/country-cell/index.ts +1 -0
  638. package/src/components/table/table-cells/order/customer-cell/customer-cell.tsx +31 -0
  639. package/src/components/table/table-cells/order/customer-cell/index.ts +1 -0
  640. package/src/components/table/table-cells/order/display-id-cell/display-id-cell.tsx +24 -0
  641. package/src/components/table/table-cells/order/display-id-cell/index.ts +1 -0
  642. package/src/components/table/table-cells/order/fulfillment-status-cell/fulfillment-status-cell.tsx +35 -0
  643. package/src/components/table/table-cells/order/fulfillment-status-cell/index.ts +1 -0
  644. package/src/components/table/table-cells/order/payment-status-cell/index.ts +1 -0
  645. package/src/components/table/table-cells/order/payment-status-cell/payment-status-cell.tsx +26 -0
  646. package/src/components/table/table-cells/order/sales-channel-cell/index.ts +1 -0
  647. package/src/components/table/table-cells/order/sales-channel-cell/sales-channel-cell.tsx +30 -0
  648. package/src/components/table/table-cells/order/total-cell/index.ts +1 -0
  649. package/src/components/table/table-cells/order/total-cell/total-cell.tsx +29 -0
  650. package/src/components/table/table-cells/product/collection-cell/collection-cell.tsx +30 -0
  651. package/src/components/table/table-cells/product/collection-cell/index.ts +1 -0
  652. package/src/components/table/table-cells/product/product-cell/index.ts +1 -0
  653. package/src/components/table/table-cells/product/product-cell/product-cell.tsx +31 -0
  654. package/src/components/table/table-cells/product/product-status-cell/index.ts +1 -0
  655. package/src/components/table/table-cells/product/product-status-cell/product-status-cell.tsx +31 -0
  656. package/src/components/table/table-cells/product/sales-channels-cell/index.ts +1 -0
  657. package/src/components/table/table-cells/product/sales-channels-cell/sales-channels-cell.tsx +67 -0
  658. package/src/components/table/table-cells/product/variant-cell/index.ts +1 -0
  659. package/src/components/table/table-cells/product/variant-cell/variant-cell.tsx +34 -0
  660. package/src/components/table/table-cells/promotion/status-cell/index.ts +1 -0
  661. package/src/components/table/table-cells/promotion/status-cell/status-cell.tsx +13 -0
  662. package/src/components/table/table-cells/region/countries-cell/countries-cell.tsx +39 -0
  663. package/src/components/table/table-cells/region/countries-cell/index.ts +1 -0
  664. package/src/components/table/table-cells/region/fulfillment-providers-cell/fulfillment-providers-cell.tsx +49 -0
  665. package/src/components/table/table-cells/region/fulfillment-providers-cell/index.ts +1 -0
  666. package/src/components/table/table-cells/region/payment-providers-cell/index.ts +1 -0
  667. package/src/components/table/table-cells/region/payment-providers-cell/payment-providers-cell.tsx +36 -0
  668. package/src/components/table/table-cells/region/region-cell/index.ts +1 -0
  669. package/src/components/table/table-cells/region/region-cell/region-cell.tsx +23 -0
  670. package/src/components/table/table-cells/sales-channel/description-cell/description-cell.tsx +28 -0
  671. package/src/components/table/table-cells/sales-channel/description-cell/index.ts +1 -0
  672. package/src/components/table/table-cells/sales-channel/name-cell/index.ts +1 -0
  673. package/src/components/table/table-cells/sales-channel/name-cell/name-cell.tsx +28 -0
  674. package/src/components/table/table-cells/shipping-option/admin-only-cell/admin-only-cell.tsx +25 -0
  675. package/src/components/table/table-cells/shipping-option/admin-only-cell/index.ts +1 -0
  676. package/src/components/table/table-cells/shipping-option/is-return-cell/index.ts +1 -0
  677. package/src/components/table/table-cells/shipping-option/is-return-cell/is-return-cell.tsx +27 -0
  678. package/src/components/table/table-cells/shipping-option/price-type-cell/index.ts +1 -0
  679. package/src/components/table/table-cells/shipping-option/price-type-cell/price-type-cell.tsx +34 -0
  680. package/src/components/table/table-cells/shipping-option/shipping-option-cell/index.ts +1 -0
  681. package/src/components/table/table-cells/shipping-option/shipping-option-cell/shipping-option-cell.tsx +28 -0
  682. package/src/components/table/table-cells/shipping-option/shipping-price-cell/shipping-price-cell.tsx +31 -0
  683. package/src/components/table/table-cells/taxes/type-cell/index.ts +1 -0
  684. package/src/components/table/table-cells/taxes/type-cell/type-cell.tsx +33 -0
  685. package/src/components/table/view-selector/index.ts +2 -0
  686. package/src/components/table/view-selector/view-pills.tsx +265 -0
  687. package/src/components/table/view-selector/view-selector.tsx +253 -0
  688. package/src/components/utilities/error-boundary/error-boundary.tsx +75 -0
  689. package/src/components/utilities/error-boundary/index.ts +1 -0
  690. package/src/components/utilities/generic-forward-ref/generic-forward-ref.tsx +7 -0
  691. package/src/components/utilities/generic-forward-ref/index.ts +1 -0
  692. package/src/components/utilities/i18n/i18n.tsx +33 -0
  693. package/src/components/utilities/i18n/index.ts +1 -0
  694. package/src/components/utilities/keybound-form/index.ts +1 -0
  695. package/src/components/utilities/keybound-form/keybound-form.tsx +42 -0
  696. package/src/components/utilities/visually-hidden/index.ts +1 -0
  697. package/src/components/utilities/visually-hidden/visually-hidden.tsx +5 -0
  698. package/src/dashboard-app/__tests__/sort-menu-items-by-rank.spec.ts +169 -0
  699. package/src/dashboard-app/dashboard-app.tsx +499 -0
  700. package/src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx +116 -0
  701. package/src/dashboard-app/forms/form-extension-zone/index.ts +1 -0
  702. package/src/dashboard-app/forms/form-extension-zone/types.ts +1 -0
  703. package/src/dashboard-app/forms/form-extension-zone/utils.ts +66 -0
  704. package/src/dashboard-app/forms/hooks.tsx +86 -0
  705. package/src/dashboard-app/forms/index.ts +2 -0
  706. package/src/dashboard-app/index.ts +12 -0
  707. package/src/dashboard-app/links/utils.ts +20 -0
  708. package/src/dashboard-app/routes/get-route.map.tsx +1904 -0
  709. package/src/dashboard-app/routes/utils.ts +229 -0
  710. package/src/dashboard-app/types.ts +143 -0
  711. package/src/dashboard-app/utils/sort-menu-items-by-rank.ts +43 -0
  712. package/src/hooks/api/api-keys.tsx +179 -0
  713. package/src/hooks/api/auth.tsx +75 -0
  714. package/src/hooks/api/campaigns.tsx +138 -0
  715. package/src/hooks/api/categories.tsx +186 -0
  716. package/src/hooks/api/claims.tsx +593 -0
  717. package/src/hooks/api/cloud.tsx +41 -0
  718. package/src/hooks/api/collections.tsx +180 -0
  719. package/src/hooks/api/currencies.tsx +52 -0
  720. package/src/hooks/api/customer-groups.tsx +207 -0
  721. package/src/hooks/api/customers.tsx +263 -0
  722. package/src/hooks/api/exchanges.tsx +475 -0
  723. package/src/hooks/api/feature-flags.tsx +26 -0
  724. package/src/hooks/api/fulfillment-providers.tsx +59 -0
  725. package/src/hooks/api/fulfillment-sets.tsx +180 -0
  726. package/src/hooks/api/fulfillment.tsx +66 -0
  727. package/src/hooks/api/index.ts +41 -0
  728. package/src/hooks/api/inventory.tsx +274 -0
  729. package/src/hooks/api/invites.tsx +135 -0
  730. package/src/hooks/api/locales.tsx +52 -0
  731. package/src/hooks/api/notification.tsx +52 -0
  732. package/src/hooks/api/order-edits.tsx +242 -0
  733. package/src/hooks/api/orders.tsx +457 -0
  734. package/src/hooks/api/payment-collections.tsx +104 -0
  735. package/src/hooks/api/payments.tsx +116 -0
  736. package/src/hooks/api/plugins.tsx +28 -0
  737. package/src/hooks/api/price-lists.tsx +199 -0
  738. package/src/hooks/api/price-preferences.tsx +113 -0
  739. package/src/hooks/api/product-types.tsx +152 -0
  740. package/src/hooks/api/product-variants.tsx +69 -0
  741. package/src/hooks/api/products.tsx +508 -0
  742. package/src/hooks/api/promotions.tsx +286 -0
  743. package/src/hooks/api/refund-reasons.tsx +124 -0
  744. package/src/hooks/api/regions.tsx +131 -0
  745. package/src/hooks/api/reservations.tsx +149 -0
  746. package/src/hooks/api/return-reasons.tsx +132 -0
  747. package/src/hooks/api/returns.tsx +651 -0
  748. package/src/hooks/api/sales-channels.tsx +236 -0
  749. package/src/hooks/api/shipping-option-types.tsx +128 -0
  750. package/src/hooks/api/shipping-options.tsx +128 -0
  751. package/src/hooks/api/shipping-profiles.tsx +131 -0
  752. package/src/hooks/api/stock-locations.tsx +202 -0
  753. package/src/hooks/api/store.tsx +83 -0
  754. package/src/hooks/api/tags.tsx +160 -0
  755. package/src/hooks/api/tax-rates.tsx +127 -0
  756. package/src/hooks/api/tax-regions.tsx +124 -0
  757. package/src/hooks/api/translations.tsx +241 -0
  758. package/src/hooks/api/users.tsx +150 -0
  759. package/src/hooks/api/views.tsx +244 -0
  760. package/src/hooks/api/workflow-executions.tsx +52 -0
  761. package/src/hooks/table/columns/index.ts +12 -0
  762. package/src/hooks/table/columns/use-campaign-table-columns.tsx +73 -0
  763. package/src/hooks/table/columns/use-collection-table-columns.tsx +33 -0
  764. package/src/hooks/table/columns/use-column-state.ts +209 -0
  765. package/src/hooks/table/columns/use-configurable-table-columns.tsx +109 -0
  766. package/src/hooks/table/columns/use-customer-group-table-columns.tsx +33 -0
  767. package/src/hooks/table/columns/use-customer-table-columns.tsx +51 -0
  768. package/src/hooks/table/columns/use-fulfillment-provider-table-columns.tsx +25 -0
  769. package/src/hooks/table/columns/use-order-data-table-columns.tsx +234 -0
  770. package/src/hooks/table/columns/use-order-table-columns.tsx +162 -0
  771. package/src/hooks/table/columns/use-product-table-columns.tsx +59 -0
  772. package/src/hooks/table/columns/use-product-tag-table-columns.tsx +35 -0
  773. package/src/hooks/table/columns/use-product-type-table-columns.tsx +36 -0
  774. package/src/hooks/table/columns/use-promotion-table-columns.tsx +49 -0
  775. package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +39 -0
  776. package/src/hooks/table/columns/use-region-table-columns.tsx +40 -0
  777. package/src/hooks/table/columns/use-return-reason-table-columns.tsx +32 -0
  778. package/src/hooks/table/columns/use-shipping-option-table-columns.tsx +89 -0
  779. package/src/hooks/table/columns/use-shipping-option-type-table-columns.tsx +44 -0
  780. package/src/hooks/table/columns/use-tax-rates-table-columns.tsx +55 -0
  781. package/src/hooks/table/filters/index.ts +12 -0
  782. package/src/hooks/table/filters/use-collection-table-filters.tsx +7 -0
  783. package/src/hooks/table/filters/use-customer-group-table-filters.tsx +21 -0
  784. package/src/hooks/table/filters/use-customer-table-filters.tsx +68 -0
  785. package/src/hooks/table/filters/use-date-table-filters.tsx +17 -0
  786. package/src/hooks/table/filters/use-order-table-filters.tsx +158 -0
  787. package/src/hooks/table/filters/use-product-table-filters.tsx +212 -0
  788. package/src/hooks/table/filters/use-product-tag-table-filters.tsx +7 -0
  789. package/src/hooks/table/filters/use-product-type-table-filters.tsx +7 -0
  790. package/src/hooks/table/filters/use-promotion-table-filters.tsx +13 -0
  791. package/src/hooks/table/filters/use-region-table-filters.tsx +19 -0
  792. package/src/hooks/table/filters/use-shipping-option-table-filters.tsx +30 -0
  793. package/src/hooks/table/filters/use-shipping-option-type-table-filters.tsx +5 -0
  794. package/src/hooks/table/filters/use-tax-rate-table-filters.tsx +19 -0
  795. package/src/hooks/table/query/index.ts +15 -0
  796. package/src/hooks/table/query/use-campaign-table-query.tsx +31 -0
  797. package/src/hooks/table/query/use-collection-table-query.tsx +33 -0
  798. package/src/hooks/table/query/use-customer-group-table-query.tsx +33 -0
  799. package/src/hooks/table/query/use-customer-table-query.tsx +44 -0
  800. package/src/hooks/table/query/use-fulfillment-providers-table-query.tsx +31 -0
  801. package/src/hooks/table/query/use-order-table-query.tsx +57 -0
  802. package/src/hooks/table/query/use-product-table-query.tsx +72 -0
  803. package/src/hooks/table/query/use-product-tag-table-query.tsx +32 -0
  804. package/src/hooks/table/query/use-product-type-table-query.tsx +32 -0
  805. package/src/hooks/table/query/use-product-variant-table-query.tsx +32 -0
  806. package/src/hooks/table/query/use-promotion-table-query.tsx +33 -0
  807. package/src/hooks/table/query/use-refund-reason-table-query.tsx +32 -0
  808. package/src/hooks/table/query/use-region-table-query.tsx +33 -0
  809. package/src/hooks/table/query/use-return-reason-table-query.tsx +32 -0
  810. package/src/hooks/table/query/use-shipping-option-table-query.tsx +61 -0
  811. package/src/hooks/table/query/use-shipping-option-type-table-query.tsx +32 -0
  812. package/src/hooks/table/query/use-tax-rate-table-query.tsx +33 -0
  813. package/src/hooks/table/query/use-tax-region-table-query.tsx +32 -0
  814. package/src/hooks/table/query/use-user-invite-table-query.tsx +32 -0
  815. package/src/hooks/table/use-table-configuration.tsx +287 -0
  816. package/src/hooks/use-combined-refs.tsx +19 -0
  817. package/src/hooks/use-combobox-data.tsx +123 -0
  818. package/src/hooks/use-command-history.tsx +67 -0
  819. package/src/hooks/use-data-table.tsx +132 -0
  820. package/src/hooks/use-date.tsx +48 -0
  821. package/src/hooks/use-debounced-search.tsx +29 -0
  822. package/src/hooks/use-document-direction.tsx +54 -0
  823. package/src/hooks/use-handle-table-scroll.tsx +24 -0
  824. package/src/hooks/use-infinite-list.tsx +92 -0
  825. package/src/hooks/use-media-query.tsx +14 -0
  826. package/src/hooks/use-query-params.tsx +24 -0
  827. package/src/hooks/use-view-configurations.tsx +102 -0
  828. package/src/i18n/config.ts +16 -0
  829. package/src/i18n/languages.ts +223 -0
  830. package/src/i18n/translations/$schema.json +12399 -0
  831. package/src/i18n/translations/__tests__/validate-translations.spec.ts +67 -0
  832. package/src/i18n/translations/ar.json +2956 -0
  833. package/src/i18n/translations/bg.json +2987 -0
  834. package/src/i18n/translations/bs.json +3016 -0
  835. package/src/i18n/translations/cs.json +3050 -0
  836. package/src/i18n/translations/de.json +2792 -0
  837. package/src/i18n/translations/el.json +2960 -0
  838. package/src/i18n/translations/en.json +3311 -0
  839. package/src/i18n/translations/es.json +3167 -0
  840. package/src/i18n/translations/fa.json +2932 -0
  841. package/src/i18n/translations/fr.json +2791 -0
  842. package/src/i18n/translations/he.json +3017 -0
  843. package/src/i18n/translations/hu.json +3005 -0
  844. package/src/i18n/translations/id.json +3020 -0
  845. package/src/i18n/translations/index.ts +126 -0
  846. package/src/i18n/translations/it.json +2805 -0
  847. package/src/i18n/translations/ja.json +2821 -0
  848. package/src/i18n/translations/ko.json +3026 -0
  849. package/src/i18n/translations/lt.json +3007 -0
  850. package/src/i18n/translations/mk.json +2925 -0
  851. package/src/i18n/translations/mn.json +2922 -0
  852. package/src/i18n/translations/nl.json +3005 -0
  853. package/src/i18n/translations/pl.json +3227 -0
  854. package/src/i18n/translations/ptBR.json +2789 -0
  855. package/src/i18n/translations/ptPT.json +3219 -0
  856. package/src/i18n/translations/ro.json +2935 -0
  857. package/src/i18n/translations/ru.json +2936 -0
  858. package/src/i18n/translations/th.json +2792 -0
  859. package/src/i18n/translations/tr.json +2961 -0
  860. package/src/i18n/translations/uk.json +2856 -0
  861. package/src/i18n/translations/vi.json +3051 -0
  862. package/src/i18n/translations/zhCN.json +3017 -0
  863. package/src/i18n/translations/zhTW.json +3249 -0
  864. package/src/i18n/types.ts +15 -0
  865. package/src/i18next.d.ts +7 -0
  866. package/src/index.css +48 -0
  867. package/src/index.ts +2 -0
  868. package/src/lib/addresses.ts +97 -0
  869. package/src/lib/cast-number.ts +6 -0
  870. package/src/lib/client/client.ts +18 -0
  871. package/src/lib/client/index.ts +1 -0
  872. package/src/lib/common.ts +45 -0
  873. package/src/lib/credit-line.ts +8 -0
  874. package/src/lib/data/countries.ts +1767 -0
  875. package/src/lib/data/country-states.ts +1311 -0
  876. package/src/lib/data/currencies.ts +752 -0
  877. package/src/lib/form-helpers.ts +69 -0
  878. package/src/lib/format-currency.ts +7 -0
  879. package/src/lib/format-provider.ts +18 -0
  880. package/src/lib/is-fetch-error.ts +5 -0
  881. package/src/lib/money-amount-helpers.ts +75 -0
  882. package/src/lib/number-helper.ts +19 -0
  883. package/src/lib/order-helpers.ts +74 -0
  884. package/src/lib/order-item.ts +5 -0
  885. package/src/lib/orders.ts +23 -0
  886. package/src/lib/payment.ts +23 -0
  887. package/src/lib/percentage-helpers.ts +28 -0
  888. package/src/lib/plugins.ts +7 -0
  889. package/src/lib/promotions.ts +51 -0
  890. package/src/lib/query-client.ts +13 -0
  891. package/src/lib/query-key-factory.ts +53 -0
  892. package/src/lib/rma.ts +17 -0
  893. package/src/lib/schemas.ts +36 -0
  894. package/src/lib/shipping-options.ts +62 -0
  895. package/src/lib/storefront.ts +2 -0
  896. package/src/lib/table/cell-renderers.tsx +332 -0
  897. package/src/lib/table/entity-adapters.tsx +138 -0
  898. package/src/lib/table/entity-defaults.ts +73 -0
  899. package/src/lib/table/field-utils.ts +75 -0
  900. package/src/lib/table/table-adapters.ts +94 -0
  901. package/src/lib/table-display-utils.tsx +372 -0
  902. package/src/lib/validation.ts +101 -0
  903. package/src/main.tsx +9 -0
  904. package/src/module.d.ts +41 -0
  905. package/src/providers/extension-provider/extension-context.tsx +8 -0
  906. package/src/providers/extension-provider/extension-provider.tsx +18 -0
  907. package/src/providers/extension-provider/index.ts +2 -0
  908. package/src/providers/extension-provider/use-extension.tsx +10 -0
  909. package/src/providers/feature-flag-provider/index.tsx +46 -0
  910. package/src/providers/i18n-provider/i18n-provider.tsx +25 -0
  911. package/src/providers/i18n-provider/index.ts +1 -0
  912. package/src/providers/index.ts +1 -0
  913. package/src/providers/keybind-provider/hooks.tsx +319 -0
  914. package/src/providers/keybind-provider/index.ts +3 -0
  915. package/src/providers/keybind-provider/keybind-context.tsx +4 -0
  916. package/src/providers/keybind-provider/keybind-provider.tsx +64 -0
  917. package/src/providers/keybind-provider/types.ts +28 -0
  918. package/src/providers/keybind-provider/utils.ts +92 -0
  919. package/src/providers/providers.tsx +34 -0
  920. package/src/providers/search-provider/index.ts +2 -0
  921. package/src/providers/search-provider/search-context.tsx +9 -0
  922. package/src/providers/search-provider/search-provider.tsx +50 -0
  923. package/src/providers/search-provider/use-search.tsx +10 -0
  924. package/src/providers/sidebar-provider/index.ts +2 -0
  925. package/src/providers/sidebar-provider/sidebar-context.tsx +9 -0
  926. package/src/providers/sidebar-provider/sidebar-provider.tsx +31 -0
  927. package/src/providers/sidebar-provider/use-sidebar.tsx +12 -0
  928. package/src/providers/theme-provider/index.ts +3 -0
  929. package/src/providers/theme-provider/theme-context.tsx +11 -0
  930. package/src/providers/theme-provider/theme-provider.tsx +84 -0
  931. package/src/providers/theme-provider/use-theme.tsx +10 -0
  932. package/src/routes/api-key-management/api-key-management-create/api-key-management-create.tsx +15 -0
  933. package/src/routes/api-key-management/api-key-management-create/components/api-key-create-form/api-key-create-form.tsx +205 -0
  934. package/src/routes/api-key-management/api-key-management-create/components/api-key-create-form/index.ts +1 -0
  935. package/src/routes/api-key-management/api-key-management-create/index.ts +1 -0
  936. package/src/routes/api-key-management/api-key-management-detail/api-key-management-detail.tsx +48 -0
  937. package/src/routes/api-key-management/api-key-management-detail/breadcrumb.tsx +24 -0
  938. package/src/routes/api-key-management/api-key-management-detail/components/api-key-general-section/api-key-general-section.tsx +249 -0
  939. package/src/routes/api-key-management/api-key-management-detail/components/api-key-general-section/index.ts +1 -0
  940. package/src/routes/api-key-management/api-key-management-detail/components/api-key-sales-channel-section/api-key-sales-channel-section.tsx +206 -0
  941. package/src/routes/api-key-management/api-key-management-detail/components/api-key-sales-channel-section/index.ts +1 -0
  942. package/src/routes/api-key-management/api-key-management-detail/index.ts +3 -0
  943. package/src/routes/api-key-management/api-key-management-detail/loader.ts +17 -0
  944. package/src/routes/api-key-management/api-key-management-edit/api-key-management-edit.tsx +34 -0
  945. package/src/routes/api-key-management/api-key-management-edit/components/edit-api-key-form/edit-api-key-form.tsx +87 -0
  946. package/src/routes/api-key-management/api-key-management-edit/components/edit-api-key-form/index.ts +1 -0
  947. package/src/routes/api-key-management/api-key-management-edit/index.ts +1 -0
  948. package/src/routes/api-key-management/api-key-management-list/api-key-management-list.tsx +25 -0
  949. package/src/routes/api-key-management/api-key-management-list/components/api-key-management-list-table/api-key-management-list-table.tsx +93 -0
  950. package/src/routes/api-key-management/api-key-management-list/components/api-key-management-list-table/api-key-row-actions.tsx +123 -0
  951. package/src/routes/api-key-management/api-key-management-list/components/api-key-management-list-table/index.ts +1 -0
  952. package/src/routes/api-key-management/api-key-management-list/components/api-key-management-list-table/use-api-key-management-table-columns.tsx +80 -0
  953. package/src/routes/api-key-management/api-key-management-list/components/api-key-management-list-table/use-api-key-management-table-filters.tsx +18 -0
  954. package/src/routes/api-key-management/api-key-management-list/components/api-key-management-list-table/use-api-key-management-table-query.tsx +34 -0
  955. package/src/routes/api-key-management/api-key-management-list/index.ts +1 -0
  956. package/src/routes/api-key-management/api-key-management-sales-channels/api-key-management-sales-channels.tsx +32 -0
  957. package/src/routes/api-key-management/api-key-management-sales-channels/components/api-key-sales-channels-form/api-key-sales-channels-form.tsx +202 -0
  958. package/src/routes/api-key-management/api-key-management-sales-channels/components/api-key-sales-channels-form/index.ts +1 -0
  959. package/src/routes/api-key-management/api-key-management-sales-channels/index.ts +1 -0
  960. package/src/routes/api-key-management/common/constants.ts +4 -0
  961. package/src/routes/api-key-management/common/utils.ts +62 -0
  962. package/src/routes/campaigns/add-campaign-promotions/add-campaign-promotions.tsx +19 -0
  963. package/src/routes/campaigns/add-campaign-promotions/components/add-campaign-promotions-form.tsx +260 -0
  964. package/src/routes/campaigns/add-campaign-promotions/components/index.ts +1 -0
  965. package/src/routes/campaigns/add-campaign-promotions/index.ts +1 -0
  966. package/src/routes/campaigns/campaign-budget-edit/campaign-budget-edit.tsx +29 -0
  967. package/src/routes/campaigns/campaign-budget-edit/components/edit-campaign-budget-form/edit-campaign-budget-form.tsx +138 -0
  968. package/src/routes/campaigns/campaign-budget-edit/components/edit-campaign-budget-form/index.ts +1 -0
  969. package/src/routes/campaigns/campaign-budget-edit/index.ts +1 -0
  970. package/src/routes/campaigns/campaign-configuration/campaign-configuration.tsx +33 -0
  971. package/src/routes/campaigns/campaign-configuration/components/campaign-configuration-form/campaign-configuration-form.tsx +134 -0
  972. package/src/routes/campaigns/campaign-configuration/components/campaign-configuration-form/index.ts +1 -0
  973. package/src/routes/campaigns/campaign-configuration/index.ts +1 -0
  974. package/src/routes/campaigns/campaign-create/campaign-create.tsx +10 -0
  975. package/src/routes/campaigns/campaign-create/components/create-campaign-form/create-campaign-form.tsx +113 -0
  976. package/src/routes/campaigns/campaign-create/components/create-campaign-form/index.ts +1 -0
  977. package/src/routes/campaigns/campaign-create/index.ts +1 -0
  978. package/src/routes/campaigns/campaign-detail/breadcrumb.tsx +29 -0
  979. package/src/routes/campaigns/campaign-detail/campaign-detail.tsx +69 -0
  980. package/src/routes/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx +88 -0
  981. package/src/routes/campaigns/campaign-detail/components/campaign-budget/index.ts +1 -0
  982. package/src/routes/campaigns/campaign-detail/components/campaign-configuration-section/campaign-configuration-section.tsx +43 -0
  983. package/src/routes/campaigns/campaign-detail/components/campaign-configuration-section/index.ts +1 -0
  984. package/src/routes/campaigns/campaign-detail/components/campaign-general-section/campaign-general-section.tsx +137 -0
  985. package/src/routes/campaigns/campaign-detail/components/campaign-general-section/index.ts +1 -0
  986. package/src/routes/campaigns/campaign-detail/components/campaign-promotion-section/campaign-promotion-section.tsx +237 -0
  987. package/src/routes/campaigns/campaign-detail/components/campaign-promotion-section/index.ts +1 -0
  988. package/src/routes/campaigns/campaign-detail/components/campaign-spend/campaign-spend.tsx +61 -0
  989. package/src/routes/campaigns/campaign-detail/components/campaign-spend/index.ts +1 -0
  990. package/src/routes/campaigns/campaign-detail/constants.ts +1 -0
  991. package/src/routes/campaigns/campaign-detail/index.ts +3 -0
  992. package/src/routes/campaigns/campaign-detail/loader.ts +21 -0
  993. package/src/routes/campaigns/campaign-edit/campaign-edit.tsx +33 -0
  994. package/src/routes/campaigns/campaign-edit/components/edit-campaign-form/edit-campaign-form.tsx +194 -0
  995. package/src/routes/campaigns/campaign-edit/components/edit-campaign-form/index.ts +1 -0
  996. package/src/routes/campaigns/campaign-edit/index.ts +1 -0
  997. package/src/routes/campaigns/campaign-list/campaign-list.tsx +19 -0
  998. package/src/routes/campaigns/campaign-list/components/campaign-list-table.tsx +157 -0
  999. package/src/routes/campaigns/campaign-list/components/index.ts +1 -0
  1000. package/src/routes/campaigns/campaign-list/index.ts +1 -0
  1001. package/src/routes/campaigns/common/components/create-campaign-form-fields/create-campaign-form-fields.tsx +402 -0
  1002. package/src/routes/campaigns/common/components/create-campaign-form-fields/index.ts +1 -0
  1003. package/src/routes/campaigns/common/constants.ts +15 -0
  1004. package/src/routes/campaigns/common/utils/campaign-status.ts +31 -0
  1005. package/src/routes/categories/categories-metadata/categories-metadata.tsx +30 -0
  1006. package/src/routes/categories/categories-metadata/index.ts +1 -0
  1007. package/src/routes/categories/category-create/category-create.tsx +16 -0
  1008. package/src/routes/categories/category-create/components/create-category-form/create-category-details.tsx +144 -0
  1009. package/src/routes/categories/category-create/components/create-category-form/create-category-form.tsx +209 -0
  1010. package/src/routes/categories/category-create/components/create-category-form/create-category-nesting.tsx +114 -0
  1011. package/src/routes/categories/category-create/components/create-category-form/index.ts +1 -0
  1012. package/src/routes/categories/category-create/components/create-category-form/schema.ts +17 -0
  1013. package/src/routes/categories/category-create/index.ts +1 -0
  1014. package/src/routes/categories/category-detail/breadcrumb.tsx +29 -0
  1015. package/src/routes/categories/category-detail/category-detail.tsx +65 -0
  1016. package/src/routes/categories/category-detail/components/category-general-section/category-general-section.tsx +93 -0
  1017. package/src/routes/categories/category-detail/components/category-general-section/index.ts +1 -0
  1018. package/src/routes/categories/category-detail/components/category-organize-section/category-organize-section.tsx +216 -0
  1019. package/src/routes/categories/category-detail/components/category-organize-section/index.ts +1 -0
  1020. package/src/routes/categories/category-detail/components/category-product-section/category-product-section.tsx +204 -0
  1021. package/src/routes/categories/category-detail/components/category-product-section/index.ts +1 -0
  1022. package/src/routes/categories/category-detail/index.ts +3 -0
  1023. package/src/routes/categories/category-detail/loader.ts +17 -0
  1024. package/src/routes/categories/category-edit/category-edit.tsx +36 -0
  1025. package/src/routes/categories/category-edit/components/edit-category-form/edit-category-form.tsx +204 -0
  1026. package/src/routes/categories/category-edit/components/edit-category-form/index.ts +1 -0
  1027. package/src/routes/categories/category-edit/index.ts +1 -0
  1028. package/src/routes/categories/category-list/category-list.tsx +19 -0
  1029. package/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx +169 -0
  1030. package/src/routes/categories/category-list/components/category-list-table/index.ts +1 -0
  1031. package/src/routes/categories/category-list/components/category-list-table/use-category-table-columns.tsx +116 -0
  1032. package/src/routes/categories/category-list/components/category-list-table/use-category-table-query.tsx +23 -0
  1033. package/src/routes/categories/category-list/index.ts +1 -0
  1034. package/src/routes/categories/category-organize/category-organize.tsx +10 -0
  1035. package/src/routes/categories/category-organize/components/organize-category-form/index.ts +1 -0
  1036. package/src/routes/categories/category-organize/components/organize-category-form/organize-category-form.tsx +131 -0
  1037. package/src/routes/categories/category-organize/index.ts +1 -0
  1038. package/src/routes/categories/category-products/category-products.tsx +30 -0
  1039. package/src/routes/categories/category-products/components/edit-category-products-form/edit-category-products-form.tsx +245 -0
  1040. package/src/routes/categories/category-products/components/edit-category-products-form/index.ts +1 -0
  1041. package/src/routes/categories/category-products/index.ts +1 -0
  1042. package/src/routes/categories/common/components/category-tree/category-tree.tsx +55 -0
  1043. package/src/routes/categories/common/components/category-tree/index.ts +1 -0
  1044. package/src/routes/categories/common/hooks/use-delete-product-category-action.tsx +49 -0
  1045. package/src/routes/categories/common/types.ts +7 -0
  1046. package/src/routes/categories/common/utils.ts +157 -0
  1047. package/src/routes/collections/collection-add-products/collection-add-products.tsx +22 -0
  1048. package/src/routes/collections/collection-add-products/components/add-products-to-collection-form/add-products-to-collection-form.tsx +259 -0
  1049. package/src/routes/collections/collection-add-products/components/add-products-to-collection-form/index.ts +1 -0
  1050. package/src/routes/collections/collection-add-products/index.ts +1 -0
  1051. package/src/routes/collections/collection-create/collection-create.tsx +10 -0
  1052. package/src/routes/collections/collection-create/components/create-collection-form/create-collection-form.tsx +120 -0
  1053. package/src/routes/collections/collection-create/components/create-collection-form/index.ts +1 -0
  1054. package/src/routes/collections/collection-create/index.ts +1 -0
  1055. package/src/routes/collections/collection-detail/breadcrumb.tsx +23 -0
  1056. package/src/routes/collections/collection-detail/collection-detail.tsx +45 -0
  1057. package/src/routes/collections/collection-detail/components/collection-general-section/collection-general-section.tsx +91 -0
  1058. package/src/routes/collections/collection-detail/components/collection-general-section/index.ts +1 -0
  1059. package/src/routes/collections/collection-detail/components/collection-product-section/collection-product-section.tsx +272 -0
  1060. package/src/routes/collections/collection-detail/components/collection-product-section/index.ts +1 -0
  1061. package/src/routes/collections/collection-detail/index.ts +3 -0
  1062. package/src/routes/collections/collection-detail/loader.ts +17 -0
  1063. package/src/routes/collections/collection-edit/collection-edit.tsx +27 -0
  1064. package/src/routes/collections/collection-edit/components/edit-collection-form/edit-collection-form.tsx +110 -0
  1065. package/src/routes/collections/collection-edit/components/edit-collection-form/index.ts +1 -0
  1066. package/src/routes/collections/collection-edit/index.ts +1 -0
  1067. package/src/routes/collections/collection-list/collection-list.tsx +18 -0
  1068. package/src/routes/collections/collection-list/components/collection-list-table/collection-list-table.tsx +99 -0
  1069. package/src/routes/collections/collection-list/components/collection-list-table/collection-row-actions.tsx +78 -0
  1070. package/src/routes/collections/collection-list/components/collection-list-table/index.ts +1 -0
  1071. package/src/routes/collections/collection-list/index.ts +1 -0
  1072. package/src/routes/collections/collection-metadata/collection-metadata.tsx +26 -0
  1073. package/src/routes/collections/collection-metadata/index.ts +1 -0
  1074. package/src/routes/customer-groups/customer-group-add-customers/components/add-customers-form/add-customers-form.tsx +245 -0
  1075. package/src/routes/customer-groups/customer-group-add-customers/components/add-customers-form/index.ts +1 -0
  1076. package/src/routes/customer-groups/customer-group-add-customers/customer-group-add-customers.tsx +13 -0
  1077. package/src/routes/customer-groups/customer-group-add-customers/index.ts +1 -0
  1078. package/src/routes/customer-groups/customer-group-create/components/create-customer-group-form/create-customer-group-form.tsx +110 -0
  1079. package/src/routes/customer-groups/customer-group-create/components/create-customer-group-form/index.ts +1 -0
  1080. package/src/routes/customer-groups/customer-group-create/customer-group-create.tsx +10 -0
  1081. package/src/routes/customer-groups/customer-group-create/index.ts +1 -0
  1082. package/src/routes/customer-groups/customer-group-detail/breadcrumb.tsx +31 -0
  1083. package/src/routes/customer-groups/customer-group-detail/components/customer-group-customer-section/customer-group-customer-section.tsx +243 -0
  1084. package/src/routes/customer-groups/customer-group-detail/components/customer-group-customer-section/index.ts +1 -0
  1085. package/src/routes/customer-groups/customer-group-detail/components/customer-group-general-section/customer-group-general-section.tsx +90 -0
  1086. package/src/routes/customer-groups/customer-group-detail/components/customer-group-general-section/index.ts +1 -0
  1087. package/src/routes/customer-groups/customer-group-detail/constants.ts +1 -0
  1088. package/src/routes/customer-groups/customer-group-detail/customer-group-detail.tsx +51 -0
  1089. package/src/routes/customer-groups/customer-group-detail/index.ts +3 -0
  1090. package/src/routes/customer-groups/customer-group-detail/loader.ts +20 -0
  1091. package/src/routes/customer-groups/customer-group-edit/components/edit-customer-group-form/edit-customer-group-form.tsx +90 -0
  1092. package/src/routes/customer-groups/customer-group-edit/components/edit-customer-group-form/index.ts +1 -0
  1093. package/src/routes/customer-groups/customer-group-edit/customer-group-edit.tsx +28 -0
  1094. package/src/routes/customer-groups/customer-group-edit/index.ts +1 -0
  1095. package/src/routes/customer-groups/customer-group-list/components/customer-group-list-table/customer-group-list-table.tsx +223 -0
  1096. package/src/routes/customer-groups/customer-group-list/components/customer-group-list-table/index.ts +1 -0
  1097. package/src/routes/customer-groups/customer-group-list/customer-group-list.tsx +18 -0
  1098. package/src/routes/customer-groups/customer-group-list/index.ts +1 -0
  1099. package/src/routes/customer-groups/customer-group-metadata/customer-metadata.tsx +26 -0
  1100. package/src/routes/customer-groups/customer-group-metadata/index.ts +1 -0
  1101. package/src/routes/customers/customer-create/components/create-customer-form/create-customer-form.tsx +179 -0
  1102. package/src/routes/customers/customer-create/components/create-customer-form/index.ts +1 -0
  1103. package/src/routes/customers/customer-create/customer-create.tsx +10 -0
  1104. package/src/routes/customers/customer-create/index.ts +1 -0
  1105. package/src/routes/customers/customer-create-address/components/create-customer-address-form/create-customer-address-form.tsx +282 -0
  1106. package/src/routes/customers/customer-create-address/components/create-customer-address-form/index.ts +1 -0
  1107. package/src/routes/customers/customer-create-address/customer-create-address.tsx +10 -0
  1108. package/src/routes/customers/customer-create-address/index.ts +1 -0
  1109. package/src/routes/customers/customer-detail/breadcrumb.tsx +29 -0
  1110. package/src/routes/customers/customer-detail/components/customer-address-section/customer-address-section.tsx +104 -0
  1111. package/src/routes/customers/customer-detail/components/customer-address-section/index.ts +1 -0
  1112. package/src/routes/customers/customer-detail/components/customer-general-section/customer-general-section.tsx +127 -0
  1113. package/src/routes/customers/customer-detail/components/customer-general-section/index.ts +1 -0
  1114. package/src/routes/customers/customer-detail/components/customer-group-section/customer-group-section.tsx +269 -0
  1115. package/src/routes/customers/customer-detail/components/customer-group-section/index.ts +1 -0
  1116. package/src/routes/customers/customer-detail/components/customer-order-section/customer-order-section.tsx +130 -0
  1117. package/src/routes/customers/customer-detail/components/customer-order-section/index.ts +1 -0
  1118. package/src/routes/customers/customer-detail/customer-detail.tsx +58 -0
  1119. package/src/routes/customers/customer-detail/index.ts +3 -0
  1120. package/src/routes/customers/customer-detail/loader.ts +19 -0
  1121. package/src/routes/customers/customer-edit/components/edit-customer-form/edit-customer-form.tsx +178 -0
  1122. package/src/routes/customers/customer-edit/components/edit-customer-form/index.ts +1 -0
  1123. package/src/routes/customers/customer-edit/customer-edit.tsx +26 -0
  1124. package/src/routes/customers/customer-edit/index.ts +1 -0
  1125. package/src/routes/customers/customer-list/components/customer-list-table/customer-list-table.tsx +124 -0
  1126. package/src/routes/customers/customer-list/components/customer-list-table/index.ts +1 -0
  1127. package/src/routes/customers/customer-list/customer-list.tsx +18 -0
  1128. package/src/routes/customers/customer-list/index.ts +1 -0
  1129. package/src/routes/customers/customer-metadata/customer-metadata.tsx +23 -0
  1130. package/src/routes/customers/customer-metadata/index.ts +1 -0
  1131. package/src/routes/customers/customers-add-customer-group/components/add-customers-form/add-customer-groups-form.tsx +257 -0
  1132. package/src/routes/customers/customers-add-customer-group/components/add-customers-form/index.ts +1 -0
  1133. package/src/routes/customers/customers-add-customer-group/customer-add-customer-groups.tsx +13 -0
  1134. package/src/routes/customers/customers-add-customer-group/index.ts +1 -0
  1135. package/src/routes/home/home.tsx +12 -0
  1136. package/src/routes/home/index.ts +1 -0
  1137. package/src/routes/inventory/common/constants.ts +1 -0
  1138. package/src/routes/inventory/inventory-create/components/inventory-create-form/index.ts +1 -0
  1139. package/src/routes/inventory/inventory-create/components/inventory-create-form/inventory-availability-form.tsx +78 -0
  1140. package/src/routes/inventory/inventory-create/components/inventory-create-form/inventory-create-form.tsx +517 -0
  1141. package/src/routes/inventory/inventory-create/components/inventory-create-form/schema.ts +23 -0
  1142. package/src/routes/inventory/inventory-create/index.ts +1 -0
  1143. package/src/routes/inventory/inventory-create/inventory-create.tsx +21 -0
  1144. package/src/routes/inventory/inventory-detail/breadcrumb.tsx +31 -0
  1145. package/src/routes/inventory/inventory-detail/components/adjust-inventory/adjust-inventory-drawer.tsx +55 -0
  1146. package/src/routes/inventory/inventory-detail/components/adjust-inventory/components/adjust-inventory-form.tsx +178 -0
  1147. package/src/routes/inventory/inventory-detail/components/adjust-inventory/index.ts +1 -0
  1148. package/src/routes/inventory/inventory-detail/components/edit-inventory-item/components/edit-item-form.tsx +105 -0
  1149. package/src/routes/inventory/inventory-detail/components/edit-inventory-item/edit-item-drawer.tsx +33 -0
  1150. package/src/routes/inventory/inventory-detail/components/edit-inventory-item/index.ts +1 -0
  1151. package/src/routes/inventory/inventory-detail/components/edit-inventory-item-attributes/components/edit-item-attributes-form.tsx +270 -0
  1152. package/src/routes/inventory/inventory-detail/components/edit-inventory-item-attributes/edit-item-attributes-drawer.tsx +33 -0
  1153. package/src/routes/inventory/inventory-detail/components/edit-inventory-item-attributes/index.ts +1 -0
  1154. package/src/routes/inventory/inventory-detail/components/inventory-item-attributes/attributes-section.tsx +50 -0
  1155. package/src/routes/inventory/inventory-detail/components/inventory-item-general-section.tsx +65 -0
  1156. package/src/routes/inventory/inventory-detail/components/inventory-item-location-levels.tsx +26 -0
  1157. package/src/routes/inventory/inventory-detail/components/inventory-item-reservations.tsx +28 -0
  1158. package/src/routes/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx +72 -0
  1159. package/src/routes/inventory/inventory-detail/components/location-levels-table/location-list-table.tsx +49 -0
  1160. package/src/routes/inventory/inventory-detail/components/location-levels-table/use-location-list-table-columns.tsx +170 -0
  1161. package/src/routes/inventory/inventory-detail/components/location-levels-table/use-location-list-table-query.tsx +32 -0
  1162. package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-item.tsx +51 -0
  1163. package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-search-input.tsx +34 -0
  1164. package/src/routes/inventory/inventory-detail/components/manage-locations/components/manage-locations-form.tsx +183 -0
  1165. package/src/routes/inventory/inventory-detail/components/manage-locations/index.ts +1 -0
  1166. package/src/routes/inventory/inventory-detail/components/manage-locations/manage-locations-drawer.tsx +40 -0
  1167. package/src/routes/inventory/inventory-detail/components/reservations-table/reservation-actions.tsx +64 -0
  1168. package/src/routes/inventory/inventory-detail/components/reservations-table/reservation-list-table.tsx +70 -0
  1169. package/src/routes/inventory/inventory-detail/components/reservations-table/use-reservation-list-table-columns.tsx +93 -0
  1170. package/src/routes/inventory/inventory-detail/components/reservations-table/use-reservation-list-table-query.tsx +35 -0
  1171. package/src/routes/inventory/inventory-detail/constants.ts +2 -0
  1172. package/src/routes/inventory/inventory-detail/index.ts +3 -0
  1173. package/src/routes/inventory/inventory-detail/inventory-detail.tsx +80 -0
  1174. package/src/routes/inventory/inventory-detail/loader.ts +21 -0
  1175. package/src/routes/inventory/inventory-list/components/inventory-actions.tsx +53 -0
  1176. package/src/routes/inventory/inventory-list/components/inventory-list-table.tsx +105 -0
  1177. package/src/routes/inventory/inventory-list/components/use-inventory-table-columns.tsx +125 -0
  1178. package/src/routes/inventory/inventory-list/components/use-inventory-table-filters.tsx +82 -0
  1179. package/src/routes/inventory/inventory-list/components/use-inventory-table-query.tsx +70 -0
  1180. package/src/routes/inventory/inventory-list/index.ts +1 -0
  1181. package/src/routes/inventory/inventory-list/inventory-list.tsx +18 -0
  1182. package/src/routes/inventory/inventory-metadata/index.ts +1 -0
  1183. package/src/routes/inventory/inventory-metadata/inventory-metadata.tsx +27 -0
  1184. package/src/routes/inventory/inventory-stock/components/inventory-stock-form/index.ts +1 -0
  1185. package/src/routes/inventory/inventory-stock/components/inventory-stock-form/inventory-stock-form.tsx +163 -0
  1186. package/src/routes/inventory/inventory-stock/hooks/use-inventory-stock-columns.tsx +76 -0
  1187. package/src/routes/inventory/inventory-stock/index.ts +1 -0
  1188. package/src/routes/inventory/inventory-stock/inventory-stock.tsx +58 -0
  1189. package/src/routes/inventory/inventory-stock/schema.ts +22 -0
  1190. package/src/routes/invite/index.ts +1 -0
  1191. package/src/routes/invite/invite.tsx +416 -0
  1192. package/src/routes/locations/common/components/conditional-price-form/conditional-price-form.tsx +713 -0
  1193. package/src/routes/locations/common/components/conditional-price-form/index.ts +1 -0
  1194. package/src/routes/locations/common/components/geo-zone-form/geo-zone-form.tsx +327 -0
  1195. package/src/routes/locations/common/components/geo-zone-form/index.ts +1 -0
  1196. package/src/routes/locations/common/components/shipping-option-price-cell/index.ts +1 -0
  1197. package/src/routes/locations/common/components/shipping-option-price-cell/shipping-option-price-cell.tsx +261 -0
  1198. package/src/routes/locations/common/components/shipping-option-price-provider/index.ts +2 -0
  1199. package/src/routes/locations/common/components/shipping-option-price-provider/shipping-option-price-context.tsx +10 -0
  1200. package/src/routes/locations/common/components/shipping-option-price-provider/shipping-option-price-provider.tsx +23 -0
  1201. package/src/routes/locations/common/components/shipping-option-price-provider/use-shipping-option-price.tsx +14 -0
  1202. package/src/routes/locations/common/constants.ts +16 -0
  1203. package/src/routes/locations/common/hooks/use-shipping-option-price-columns.tsx +174 -0
  1204. package/src/routes/locations/common/schema.ts +192 -0
  1205. package/src/routes/locations/common/types.ts +12 -0
  1206. package/src/routes/locations/common/utils/get-custom-shipping-option-price-field-info.ts +19 -0
  1207. package/src/routes/locations/common/utils/price-rule-helpers.ts +41 -0
  1208. package/src/routes/locations/location-create/components/create-location-form/create-location-form.tsx +248 -0
  1209. package/src/routes/locations/location-create/components/create-location-form/index.ts +1 -0
  1210. package/src/routes/locations/location-create/index.ts +1 -0
  1211. package/src/routes/locations/location-create/location-create.tsx +10 -0
  1212. package/src/routes/locations/location-detail/breadcrumb.tsx +31 -0
  1213. package/src/routes/locations/location-detail/components/location-fulfillment-providers-section/index.ts +1 -0
  1214. package/src/routes/locations/location-detail/components/location-fulfillment-providers-section/location-fulfillment-providers-section.tsx +81 -0
  1215. package/src/routes/locations/location-detail/components/location-general-section/index.ts +1 -0
  1216. package/src/routes/locations/location-detail/components/location-general-section/location-general-section.tsx +661 -0
  1217. package/src/routes/locations/location-detail/components/location-sales-channels-section/index.ts +1 -0
  1218. package/src/routes/locations/location-detail/components/location-sales-channels-section/locations-sales-channels-section.tsx +76 -0
  1219. package/src/routes/locations/location-detail/constants.ts +2 -0
  1220. package/src/routes/locations/location-detail/index.ts +3 -0
  1221. package/src/routes/locations/location-detail/loader.ts +23 -0
  1222. package/src/routes/locations/location-detail/location-detail.tsx +64 -0
  1223. package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +234 -0
  1224. package/src/routes/locations/location-edit/components/edit-location-form/index.ts +1 -0
  1225. package/src/routes/locations/location-edit/index.ts +1 -0
  1226. package/src/routes/locations/location-edit/location-edit.tsx +33 -0
  1227. package/src/routes/locations/location-fulfillment-providers/components/edit-fulfillment-providers-form/edit-fulfillment-providers-form.tsx +207 -0
  1228. package/src/routes/locations/location-fulfillment-providers/components/edit-fulfillment-providers-form/index.ts +1 -0
  1229. package/src/routes/locations/location-fulfillment-providers/index.ts +1 -0
  1230. package/src/routes/locations/location-fulfillment-providers/location-fulfillment-providers.tsx +27 -0
  1231. package/src/routes/locations/location-list/components/location-list-item/index.ts +1 -0
  1232. package/src/routes/locations/location-list/components/location-list-item/location-list-item.tsx +186 -0
  1233. package/src/routes/locations/location-list/constants.ts +3 -0
  1234. package/src/routes/locations/location-list/index.ts +1 -0
  1235. package/src/routes/locations/location-list/location-list.tsx +128 -0
  1236. package/src/routes/locations/location-list/use-location-list-table-columns.tsx +185 -0
  1237. package/src/routes/locations/location-list/use-location-list-table-query.tsx +22 -0
  1238. package/src/routes/locations/location-sales-channels/components/edit-sales-channels-form/edit-sales-channels-form.tsx +177 -0
  1239. package/src/routes/locations/location-sales-channels/components/edit-sales-channels-form/index.ts +1 -0
  1240. package/src/routes/locations/location-sales-channels/index.ts +1 -0
  1241. package/src/routes/locations/location-sales-channels/location-sales-channels.tsx +27 -0
  1242. package/src/routes/locations/location-service-zone-create/components/create-service-zone-form/create-service-zone-form.tsx +146 -0
  1243. package/src/routes/locations/location-service-zone-create/components/create-service-zone-form/index.ts +1 -0
  1244. package/src/routes/locations/location-service-zone-create/index.ts +1 -0
  1245. package/src/routes/locations/location-service-zone-create/location-service-zone-create.tsx +47 -0
  1246. package/src/routes/locations/location-service-zone-edit/components/edit-region-form/edit-service-zone-form.tsx +105 -0
  1247. package/src/routes/locations/location-service-zone-edit/components/edit-region-form/index.ts +1 -0
  1248. package/src/routes/locations/location-service-zone-edit/index.ts +1 -0
  1249. package/src/routes/locations/location-service-zone-edit/location-service-zone-edit.tsx +47 -0
  1250. package/src/routes/locations/location-service-zone-manage-areas/components/edit-region-areas-form/edit-service-zone-areas-form.tsx +120 -0
  1251. package/src/routes/locations/location-service-zone-manage-areas/components/edit-region-areas-form/index.ts +1 -0
  1252. package/src/routes/locations/location-service-zone-manage-areas/index.ts +1 -0
  1253. package/src/routes/locations/location-service-zone-manage-areas/location-service-zone-manage-areas.tsx +41 -0
  1254. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +297 -0
  1255. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +359 -0
  1256. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-prices-form.tsx +145 -0
  1257. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/index.ts +1 -0
  1258. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/schema.ts +44 -0
  1259. package/src/routes/locations/location-service-zone-shipping-option-create/constants.ts +2 -0
  1260. package/src/routes/locations/location-service-zone-shipping-option-create/index.ts +1 -0
  1261. package/src/routes/locations/location-service-zone-shipping-option-create/location-service-zone-shipping-option-create.tsx +55 -0
  1262. package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +314 -0
  1263. package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/index.ts +1 -0
  1264. package/src/routes/locations/location-service-zone-shipping-option-edit/index.ts +1 -0
  1265. package/src/routes/locations/location-service-zone-shipping-option-edit/location-service-zone-shipping-option-edit.tsx +59 -0
  1266. package/src/routes/locations/location-service-zone-shipping-option-pricing/components/create-shipping-options-form/edit-shipping-options-pricing-form.tsx +384 -0
  1267. package/src/routes/locations/location-service-zone-shipping-option-pricing/components/create-shipping-options-form/index.ts +1 -0
  1268. package/src/routes/locations/location-service-zone-shipping-option-pricing/index.ts +1 -0
  1269. package/src/routes/locations/location-service-zone-shipping-option-pricing/location-service-zone-shipping-option-pricing.tsx +36 -0
  1270. package/src/routes/login/components/cloud-auth-login.tsx +166 -0
  1271. package/src/routes/login/index.ts +1 -0
  1272. package/src/routes/login/login.tsx +175 -0
  1273. package/src/routes/no-match/index.ts +1 -0
  1274. package/src/routes/no-match/no-match.tsx +36 -0
  1275. package/src/routes/orders/common/placeholders.tsx +48 -0
  1276. package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/constants.ts +6 -0
  1277. package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/index.ts +1 -0
  1278. package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx +349 -0
  1279. package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-item.tsx +346 -0
  1280. package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/utils.ts +28 -0
  1281. package/src/routes/orders/order-allocate-items/index.ts +1 -0
  1282. package/src/routes/orders/order-allocate-items/order-allocate-items.tsx +26 -0
  1283. package/src/routes/orders/order-balance-settlement/components/order-balance-settlement-form/index.ts +1 -0
  1284. package/src/routes/orders/order-balance-settlement/components/order-balance-settlement-form/order-balance-settlement-form.tsx +396 -0
  1285. package/src/routes/orders/order-balance-settlement/index.ts +1 -0
  1286. package/src/routes/orders/order-create-claim/claim-create.tsx +84 -0
  1287. package/src/routes/orders/order-create-claim/components/add-claim-items-table/add-claim-items-table.tsx +283 -0
  1288. package/src/routes/orders/order-create-claim/components/add-claim-items-table/index.ts +1 -0
  1289. package/src/routes/orders/order-create-claim/components/add-claim-items-table/use-claim-item-table-columns.tsx +103 -0
  1290. package/src/routes/orders/order-create-claim/components/add-claim-items-table/use-claim-item-table-filters.tsx +32 -0
  1291. package/src/routes/orders/order-create-claim/components/add-claim-items-table/use-claim-item-table-query.tsx +61 -0
  1292. package/src/routes/orders/order-create-claim/components/add-claim-outbound-items-table/add-claim-outbound-items-table.tsx +94 -0
  1293. package/src/routes/orders/order-create-claim/components/add-claim-outbound-items-table/index.ts +1 -0
  1294. package/src/routes/orders/order-create-claim/components/add-claim-outbound-items-table/use-claim-outbound-item-table-columns.tsx +68 -0
  1295. package/src/routes/orders/order-create-claim/components/add-claim-outbound-items-table/use-claim-outbound-item-table-filters.tsx +22 -0
  1296. package/src/routes/orders/order-create-claim/components/add-claim-outbound-items-table/use-claim-outbound-item-table-query.tsx +40 -0
  1297. package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +1092 -0
  1298. package/src/routes/orders/order-create-claim/components/claim-create-form/claim-inbound-item.tsx +244 -0
  1299. package/src/routes/orders/order-create-claim/components/claim-create-form/claim-outbound-item.tsx +121 -0
  1300. package/src/routes/orders/order-create-claim/components/claim-create-form/claim-outbound-section.tsx +442 -0
  1301. package/src/routes/orders/order-create-claim/components/claim-create-form/index.ts +1 -0
  1302. package/src/routes/orders/order-create-claim/components/claim-create-form/item-placeholder.tsx +11 -0
  1303. package/src/routes/orders/order-create-claim/components/claim-create-form/schema.ts +24 -0
  1304. package/src/routes/orders/order-create-claim/index.ts +1 -0
  1305. package/src/routes/orders/order-create-edit/components/add-order-edit-items-table/add-order-edit-items-table.tsx +87 -0
  1306. package/src/routes/orders/order-create-edit/components/add-order-edit-items-table/index.ts +1 -0
  1307. package/src/routes/orders/order-create-edit/components/add-order-edit-items-table/use-order-edit-item-table-columns.tsx +68 -0
  1308. package/src/routes/orders/order-create-edit/components/add-order-edit-items-table/use-order-edit-item-table-filters.tsx +22 -0
  1309. package/src/routes/orders/order-create-edit/components/add-order-edit-items-table/use-order-edit-item-table-query.tsx +26 -0
  1310. package/src/routes/orders/order-create-edit/components/order-edit-create-form/index.ts +1 -0
  1311. package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-create-form.tsx +231 -0
  1312. package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-item.tsx +257 -0
  1313. package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-items-section.tsx +145 -0
  1314. package/src/routes/orders/order-create-edit/components/order-edit-create-form/schema.ts +8 -0
  1315. package/src/routes/orders/order-create-edit/index.ts +1 -0
  1316. package/src/routes/orders/order-create-edit/order-edit-create.tsx +65 -0
  1317. package/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/add-exchange-inbound-items-table.tsx +193 -0
  1318. package/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/index.ts +1 -0
  1319. package/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/use-exchange-item-table-columns.tsx +103 -0
  1320. package/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/use-exchange-item-table-filters.tsx +22 -0
  1321. package/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/use-exchange-item-table-query.tsx +26 -0
  1322. package/src/routes/orders/order-create-exchange/components/add-exchange-outbound-items-table/add-exchange-outbound-items-table.tsx +94 -0
  1323. package/src/routes/orders/order-create-exchange/components/add-exchange-outbound-items-table/index.ts +1 -0
  1324. package/src/routes/orders/order-create-exchange/components/add-exchange-outbound-items-table/use-exchange-outbound-item-table-columns.tsx +68 -0
  1325. package/src/routes/orders/order-create-exchange/components/add-exchange-outbound-items-table/use-exchange-outbound-item-table-filters.tsx +22 -0
  1326. package/src/routes/orders/order-create-exchange/components/add-exchange-outbound-items-table/use-exchange-outbound-item-table-query.tsx +26 -0
  1327. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +652 -0
  1328. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx +269 -0
  1329. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-section.tsx +546 -0
  1330. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-item.tsx +140 -0
  1331. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-section.tsx +450 -0
  1332. package/src/routes/orders/order-create-exchange/components/exchange-create-form/index.ts +1 -0
  1333. package/src/routes/orders/order-create-exchange/components/exchange-create-form/schema.ts +25 -0
  1334. package/src/routes/orders/order-create-exchange/exchange-create.tsx +84 -0
  1335. package/src/routes/orders/order-create-exchange/index.ts +1 -0
  1336. package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/constants.ts +8 -0
  1337. package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/index.ts +1 -0
  1338. package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +437 -0
  1339. package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-item.tsx +250 -0
  1340. package/src/routes/orders/order-create-fulfillment/index.ts +1 -0
  1341. package/src/routes/orders/order-create-fulfillment/order-create-fulfillments.tsx +33 -0
  1342. package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +306 -0
  1343. package/src/routes/orders/order-create-refund/components/create-refund-form/index.ts +1 -0
  1344. package/src/routes/orders/order-create-refund/index.ts +1 -0
  1345. package/src/routes/orders/order-create-refund/order-create-refund.tsx +31 -0
  1346. package/src/routes/orders/order-create-return/components/add-return-items-table/add-return-items-table.tsx +284 -0
  1347. package/src/routes/orders/order-create-return/components/add-return-items-table/index.ts +1 -0
  1348. package/src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-columns.tsx +103 -0
  1349. package/src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-filters.tsx +32 -0
  1350. package/src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-query.tsx +61 -0
  1351. package/src/routes/orders/order-create-return/components/return-create-form/index.ts +1 -0
  1352. package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +785 -0
  1353. package/src/routes/orders/order-create-return/components/return-create-form/return-item.tsx +246 -0
  1354. package/src/routes/orders/order-create-return/components/return-create-form/schema.ts +19 -0
  1355. package/src/routes/orders/order-create-return/index.ts +1 -0
  1356. package/src/routes/orders/order-create-return/return-create.tsx +80 -0
  1357. package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/constants.ts +13 -0
  1358. package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/index.ts +1 -0
  1359. package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/order-create-shipment-form.tsx +234 -0
  1360. package/src/routes/orders/order-create-shipment/index.ts +1 -0
  1361. package/src/routes/orders/order-create-shipment/order-create-shipment.tsx +30 -0
  1362. package/src/routes/orders/order-detail/breadcrumb.tsx +27 -0
  1363. package/src/routes/orders/order-detail/components/active-order-claim-section/active-order-claim-section.tsx +79 -0
  1364. package/src/routes/orders/order-detail/components/active-order-claim-section/index.ts +1 -0
  1365. package/src/routes/orders/order-detail/components/active-order-exchange-section/active-order-exchange-section.tsx +83 -0
  1366. package/src/routes/orders/order-detail/components/active-order-exchange-section/index.ts +1 -0
  1367. package/src/routes/orders/order-detail/components/active-order-return-section/active-order-return-section.tsx +82 -0
  1368. package/src/routes/orders/order-detail/components/active-order-return-section/index.ts +1 -0
  1369. package/src/routes/orders/order-detail/components/copy-payment-link/copy-payment-link.tsx +80 -0
  1370. package/src/routes/orders/order-detail/components/copy-payment-link/index.ts +1 -0
  1371. package/src/routes/orders/order-detail/components/order-active-edit-section/index.ts +1 -0
  1372. package/src/routes/orders/order-detail/components/order-active-edit-section/order-active-edit-section.tsx +199 -0
  1373. package/src/routes/orders/order-detail/components/order-activity-section/activity-items.tsx +125 -0
  1374. package/src/routes/orders/order-detail/components/order-activity-section/change-details-tooltip.tsx +74 -0
  1375. package/src/routes/orders/order-detail/components/order-activity-section/index.ts +1 -0
  1376. package/src/routes/orders/order-detail/components/order-activity-section/order-activity-section.tsx +25 -0
  1377. package/src/routes/orders/order-detail/components/order-activity-section/order-note-form.tsx +112 -0
  1378. package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +1121 -0
  1379. package/src/routes/orders/order-detail/components/order-customer-section/index.ts +1 -0
  1380. package/src/routes/orders/order-detail/components/order-customer-section/order-customer-section.tsx +68 -0
  1381. package/src/routes/orders/order-detail/components/order-fulfillment-section/index.ts +1 -0
  1382. package/src/routes/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx +489 -0
  1383. package/src/routes/orders/order-detail/components/order-general-section/index.ts +1 -0
  1384. package/src/routes/orders/order-detail/components/order-general-section/order-general-section.tsx +136 -0
  1385. package/src/routes/orders/order-detail/components/order-payment-section/index.ts +1 -0
  1386. package/src/routes/orders/order-detail/components/order-payment-section/order-payment-section.tsx +465 -0
  1387. package/src/routes/orders/order-detail/components/order-summary-section/index.ts +1 -0
  1388. package/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx +1270 -0
  1389. package/src/routes/orders/order-detail/components/order-summary-section/return-info-popover.tsx +90 -0
  1390. package/src/routes/orders/order-detail/components/order-summary-section/shipping-info-popover.tsx +48 -0
  1391. package/src/routes/orders/order-detail/constants.ts +64 -0
  1392. package/src/routes/orders/order-detail/index.ts +3 -0
  1393. package/src/routes/orders/order-detail/loader.ts +21 -0
  1394. package/src/routes/orders/order-detail/order-detail.tsx +96 -0
  1395. package/src/routes/orders/order-edit-billing-address/components/edit-order-billing-address-form/edit-order-billing-address-form.tsx +250 -0
  1396. package/src/routes/orders/order-edit-billing-address/components/edit-order-billing-address-form/index.ts +1 -0
  1397. package/src/routes/orders/order-edit-billing-address/index.ts +1 -0
  1398. package/src/routes/orders/order-edit-billing-address/order-edit-billing-address.tsx +31 -0
  1399. package/src/routes/orders/order-edit-email/components/edit-order-email-form/edit-order-email-form.tsx +95 -0
  1400. package/src/routes/orders/order-edit-email/components/edit-order-email-form/index.ts +1 -0
  1401. package/src/routes/orders/order-edit-email/index.ts +1 -0
  1402. package/src/routes/orders/order-edit-email/order-edit-email.tsx +31 -0
  1403. package/src/routes/orders/order-edit-shipping-address/components/edit-order-shipping-address-form/edit-order-shipping-address-form.tsx +247 -0
  1404. package/src/routes/orders/order-edit-shipping-address/components/edit-order-shipping-address-form/index.ts +1 -0
  1405. package/src/routes/orders/order-edit-shipping-address/index.ts +1 -0
  1406. package/src/routes/orders/order-edit-shipping-address/order-edit-shipping-address.tsx +31 -0
  1407. package/src/routes/orders/order-export/components/export-filters.tsx +22 -0
  1408. package/src/routes/orders/order-export/index.ts +1 -0
  1409. package/src/routes/orders/order-export/order-export.tsx +66 -0
  1410. package/src/routes/orders/order-list/components/order-list-table/components/save-view-dropdown.tsx +81 -0
  1411. package/src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx +24 -0
  1412. package/src/routes/orders/order-list/components/order-list-table/constants.ts +14 -0
  1413. package/src/routes/orders/order-list/components/order-list-table/hooks/use-order-data-table-columns.tsx +153 -0
  1414. package/src/routes/orders/order-list/components/order-list-table/index.ts +1 -0
  1415. package/src/routes/orders/order-list/components/order-list-table/order-list-table.tsx +89 -0
  1416. package/src/routes/orders/order-list/components/order-list-table/order-table-adapter.tsx +133 -0
  1417. package/src/routes/orders/order-list/const.ts +18 -0
  1418. package/src/routes/orders/order-list/index.ts +1 -0
  1419. package/src/routes/orders/order-list/order-list.tsx +20 -0
  1420. package/src/routes/orders/order-metadata/index.ts +1 -0
  1421. package/src/routes/orders/order-metadata/order-metadata.tsx +26 -0
  1422. package/src/routes/orders/order-receive-return/components/order-receive-return-form/constants.ts +12 -0
  1423. package/src/routes/orders/order-receive-return/components/order-receive-return-form/dismissed-quantity.tsx +167 -0
  1424. package/src/routes/orders/order-receive-return/components/order-receive-return-form/index.ts +1 -0
  1425. package/src/routes/orders/order-receive-return/components/order-receive-return-form/order-receive-return-form.tsx +386 -0
  1426. package/src/routes/orders/order-receive-return/index.ts +1 -0
  1427. package/src/routes/orders/order-receive-return/order-receive-return.tsx +96 -0
  1428. package/src/routes/orders/order-request-transfer/components/create-order-transfer-form/create-order-transfer-form.tsx +152 -0
  1429. package/src/routes/orders/order-request-transfer/components/create-order-transfer-form/index.ts +1 -0
  1430. package/src/routes/orders/order-request-transfer/components/create-order-transfer-form/transfer-header.tsx +299 -0
  1431. package/src/routes/orders/order-request-transfer/index.ts +1 -0
  1432. package/src/routes/orders/order-request-transfer/order-request-transfer.tsx +34 -0
  1433. package/src/routes/price-lists/common/components/price-list-customer-group-rule-form/index.ts +1 -0
  1434. package/src/routes/price-lists/common/components/price-list-customer-group-rule-form/price-list-customer-group-rule-form.tsx +194 -0
  1435. package/src/routes/price-lists/common/constants.ts +20 -0
  1436. package/src/routes/price-lists/common/hooks/use-delete-price-list-action.tsx +50 -0
  1437. package/src/routes/price-lists/common/hooks/use-price-list-currency-data.tsx +79 -0
  1438. package/src/routes/price-lists/common/hooks/use-price-list-grid-columns.tsx +91 -0
  1439. package/src/routes/price-lists/common/schemas.ts +96 -0
  1440. package/src/routes/price-lists/common/utils.ts +123 -0
  1441. package/src/routes/price-lists/price-list-configuration/components/price-list-configuration-form/index.ts +1 -0
  1442. package/src/routes/price-lists/price-list-configuration/components/price-list-configuration-form/price-list-configuration-form.tsx +311 -0
  1443. package/src/routes/price-lists/price-list-configuration/index.ts +1 -0
  1444. package/src/routes/price-lists/price-list-configuration/price-list-configuration.tsx +68 -0
  1445. package/src/routes/price-lists/price-list-create/components/price-list-create-form/index.ts +1 -0
  1446. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-create-form.tsx +364 -0
  1447. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-details-form.tsx +331 -0
  1448. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-prices-form.tsx +96 -0
  1449. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-products-form.tsx +187 -0
  1450. package/src/routes/price-lists/price-list-create/components/price-list-create-form/schema.ts +59 -0
  1451. package/src/routes/price-lists/price-list-create/index.ts +1 -0
  1452. package/src/routes/price-lists/price-list-create/price-list-create.tsx +20 -0
  1453. package/src/routes/price-lists/price-list-detail/breadcrumb.tsx +23 -0
  1454. package/src/routes/price-lists/price-list-detail/components/price-list-configuration-section/index.ts +1 -0
  1455. package/src/routes/price-lists/price-list-detail/components/price-list-configuration-section/price-list-configuration-section.tsx +96 -0
  1456. package/src/routes/price-lists/price-list-detail/components/price-list-general-section/index.ts +1 -0
  1457. package/src/routes/price-lists/price-list-detail/components/price-list-general-section/price-list-general-section.tsx +94 -0
  1458. package/src/routes/price-lists/price-list-detail/components/price-list-product-section/index.ts +1 -0
  1459. package/src/routes/price-lists/price-list-detail/components/price-list-product-section/price-list-product-section.tsx +285 -0
  1460. package/src/routes/price-lists/price-list-detail/index.ts +3 -0
  1461. package/src/routes/price-lists/price-list-detail/loader.ts +16 -0
  1462. package/src/routes/price-lists/price-list-detail/price-list-detail.tsx +48 -0
  1463. package/src/routes/price-lists/price-list-edit/components/price-list-edit-form/edit-price-list-form.tsx +193 -0
  1464. package/src/routes/price-lists/price-list-edit/components/price-list-edit-form/index.ts +1 -0
  1465. package/src/routes/price-lists/price-list-edit/index.ts +1 -0
  1466. package/src/routes/price-lists/price-list-edit/price-list-edit.tsx +28 -0
  1467. package/src/routes/price-lists/price-list-list/components/price-list-list-table/index.ts +1 -0
  1468. package/src/routes/price-lists/price-list-list/components/price-list-list-table/price-count-cell.tsx +19 -0
  1469. package/src/routes/price-lists/price-list-list/components/price-list-list-table/price-list-list-table-actions.tsx +42 -0
  1470. package/src/routes/price-lists/price-list-list/components/price-list-list-table/price-list-list-table.tsx +76 -0
  1471. package/src/routes/price-lists/price-list-list/components/price-list-list-table/use-pricing-table-columns.tsx +45 -0
  1472. package/src/routes/price-lists/price-list-list/components/price-list-list-table/use-pricing-table-filters.tsx +7 -0
  1473. package/src/routes/price-lists/price-list-list/components/price-list-list-table/use-pricing-table-query.tsx +25 -0
  1474. package/src/routes/price-lists/price-list-list/index.ts +1 -0
  1475. package/src/routes/price-lists/price-list-list/price-list-list.tsx +18 -0
  1476. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/index.ts +1 -0
  1477. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx +305 -0
  1478. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-prices-form.tsx +97 -0
  1479. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-product-ids-form.tsx +231 -0
  1480. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/schema.ts +27 -0
  1481. package/src/routes/price-lists/price-list-prices-add/index.ts +1 -0
  1482. package/src/routes/price-lists/price-list-prices-add/price-list-prices-add.tsx +35 -0
  1483. package/src/routes/price-lists/price-list-prices-edit/components/price-list-prices-edit-form/index.ts +1 -0
  1484. package/src/routes/price-lists/price-list-prices-edit/components/price-list-prices-edit-form/price-list-prices-edit-form.tsx +313 -0
  1485. package/src/routes/price-lists/price-list-prices-edit/index.ts +1 -0
  1486. package/src/routes/price-lists/price-list-prices-edit/price-list-prices-edit.tsx +65 -0
  1487. package/src/routes/product-tags/common/hooks/use-delete-product-tag-action.tsx +52 -0
  1488. package/src/routes/product-tags/product-tag-create/components/product-tag-create-form/index.ts +1 -0
  1489. package/src/routes/product-tags/product-tag-create/components/product-tag-create-form/product-tag-create-form.tsx +100 -0
  1490. package/src/routes/product-tags/product-tag-create/index.ts +1 -0
  1491. package/src/routes/product-tags/product-tag-create/product-tag-create.tsx +10 -0
  1492. package/src/routes/product-tags/product-tag-detail/breadcrumb.tsx +23 -0
  1493. package/src/routes/product-tags/product-tag-detail/components/product-tag-general-section/index.ts +1 -0
  1494. package/src/routes/product-tags/product-tag-detail/components/product-tag-general-section/product-tag-general-section.tsx +63 -0
  1495. package/src/routes/product-tags/product-tag-detail/components/product-tag-product-section/index.ts +1 -0
  1496. package/src/routes/product-tags/product-tag-detail/components/product-tag-product-section/product-tag-product-section.tsx +74 -0
  1497. package/src/routes/product-tags/product-tag-detail/index.ts +3 -0
  1498. package/src/routes/product-tags/product-tag-detail/loader.ts +17 -0
  1499. package/src/routes/product-tags/product-tag-detail/product-tag-detail.tsx +50 -0
  1500. package/src/routes/product-tags/product-tag-edit/components/product-tag-edit-form/index.ts +1 -0
  1501. package/src/routes/product-tags/product-tag-edit/components/product-tag-edit-form/product-tag-edit-form.tsx +88 -0
  1502. package/src/routes/product-tags/product-tag-edit/index.ts +1 -0
  1503. package/src/routes/product-tags/product-tag-edit/product-tag-edit.tsx +33 -0
  1504. package/src/routes/product-tags/product-tag-list/components/product-tag-list-table/index.ts +1 -0
  1505. package/src/routes/product-tags/product-tag-list/components/product-tag-list-table/product-tag-list-table.tsx +148 -0
  1506. package/src/routes/product-tags/product-tag-list/index.ts +2 -0
  1507. package/src/routes/product-tags/product-tag-list/loader.ts +34 -0
  1508. package/src/routes/product-tags/product-tag-list/product-tag-list.tsx +21 -0
  1509. package/src/routes/product-tags/product-tag-metadata/index.ts +1 -0
  1510. package/src/routes/product-tags/product-tag-metadata/product-tag-metadata.tsx +26 -0
  1511. package/src/routes/product-types/common/hooks/use-delete-product-type-action.tsx +38 -0
  1512. package/src/routes/product-types/product-type-create/components/create-product-type-form/create-product-type-form.tsx +100 -0
  1513. package/src/routes/product-types/product-type-create/components/create-product-type-form/index.ts +1 -0
  1514. package/src/routes/product-types/product-type-create/index.ts +1 -0
  1515. package/src/routes/product-types/product-type-create/product-type-create.tsx +10 -0
  1516. package/src/routes/product-types/product-type-detail/breadcrumb.tsx +24 -0
  1517. package/src/routes/product-types/product-type-detail/components/product-type-general-section/index.ts +1 -0
  1518. package/src/routes/product-types/product-type-detail/components/product-type-general-section/product-type-general-section.tsx +63 -0
  1519. package/src/routes/product-types/product-type-detail/components/product-type-product-section/index.ts +1 -0
  1520. package/src/routes/product-types/product-type-detail/components/product-type-product-section/product-type-product-section.tsx +70 -0
  1521. package/src/routes/product-types/product-type-detail/index.ts +3 -0
  1522. package/src/routes/product-types/product-type-detail/loader.ts +17 -0
  1523. package/src/routes/product-types/product-type-detail/product-type-detail.tsx +49 -0
  1524. package/src/routes/product-types/product-type-edit/components/edit-product-type-form/edit-product-type-form.tsx +94 -0
  1525. package/src/routes/product-types/product-type-edit/components/edit-product-type-form/index.ts +1 -0
  1526. package/src/routes/product-types/product-type-edit/index.ts +1 -0
  1527. package/src/routes/product-types/product-type-edit/product-type-edit.tsx +28 -0
  1528. package/src/routes/product-types/product-type-list/components/product-type-list-table/index.ts +1 -0
  1529. package/src/routes/product-types/product-type-list/components/product-type-list-table/product-table-row-actions.tsx +59 -0
  1530. package/src/routes/product-types/product-type-list/components/product-type-list-table/product-type-list-table.tsx +98 -0
  1531. package/src/routes/product-types/product-type-list/index.ts +1 -0
  1532. package/src/routes/product-types/product-type-list/product-type-list.tsx +18 -0
  1533. package/src/routes/product-types/product-type-metadata/index.ts +1 -0
  1534. package/src/routes/product-types/product-type-metadata/product-type-metadata.tsx +26 -0
  1535. package/src/routes/product-variants/product-variant-detail/breadcrumb.tsx +31 -0
  1536. package/src/routes/product-variants/product-variant-detail/components/variant-general-section/index.ts +1 -0
  1537. package/src/routes/product-variants/product-variant-detail/components/variant-general-section/variant-general-section.tsx +112 -0
  1538. package/src/routes/product-variants/product-variant-detail/components/variant-inventory-section/index.ts +1 -0
  1539. package/src/routes/product-variants/product-variant-detail/components/variant-inventory-section/inventory-actions.tsx +26 -0
  1540. package/src/routes/product-variants/product-variant-detail/components/variant-inventory-section/use-inventory-table-columns.tsx +104 -0
  1541. package/src/routes/product-variants/product-variant-detail/components/variant-inventory-section/variant-inventory-section.tsx +94 -0
  1542. package/src/routes/product-variants/product-variant-detail/components/variant-media-section/index.ts +1 -0
  1543. package/src/routes/product-variants/product-variant-detail/components/variant-media-section/variant-media-section.tsx +77 -0
  1544. package/src/routes/product-variants/product-variant-detail/components/variant-prices-section/index.ts +1 -0
  1545. package/src/routes/product-variants/product-variant-detail/components/variant-prices-section/variant-prices-section.tsx +82 -0
  1546. package/src/routes/product-variants/product-variant-detail/constants.ts +2 -0
  1547. package/src/routes/product-variants/product-variant-detail/index.ts +3 -0
  1548. package/src/routes/product-variants/product-variant-detail/loader.ts +25 -0
  1549. package/src/routes/product-variants/product-variant-detail/product-variant-detail.tsx +85 -0
  1550. package/src/routes/product-variants/product-variant-edit/components/product-edit-variant-form/index.ts +1 -0
  1551. package/src/routes/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx +447 -0
  1552. package/src/routes/product-variants/product-variant-edit/index.ts +2 -0
  1553. package/src/routes/product-variants/product-variant-edit/loader.ts +33 -0
  1554. package/src/routes/product-variants/product-variant-edit/product-variant-edit.tsx +62 -0
  1555. package/src/routes/product-variants/product-variant-manage-inventory-items/components/manage-variant-inventory-items-form/index.ts +1 -0
  1556. package/src/routes/product-variants/product-variant-manage-inventory-items/components/manage-variant-inventory-items-form/manage-variant-inventory-items-form.tsx +376 -0
  1557. package/src/routes/product-variants/product-variant-manage-inventory-items/index.ts +1 -0
  1558. package/src/routes/product-variants/product-variant-manage-inventory-items/product-variant-manage-inventory-items.tsx +31 -0
  1559. package/src/routes/product-variants/product-variant-media/components/edit-product-variant-media-form/edit-product-variant-media-form.tsx +434 -0
  1560. package/src/routes/product-variants/product-variant-media/components/edit-product-variant-media-form/index.ts +1 -0
  1561. package/src/routes/product-variants/product-variant-media/index.ts +1 -0
  1562. package/src/routes/product-variants/product-variant-media/product-variant-media.tsx +38 -0
  1563. package/src/routes/product-variants/product-variant-metadata/index.ts +1 -0
  1564. package/src/routes/product-variants/product-variant-metadata/product-variant-metadata.tsx +30 -0
  1565. package/src/routes/products/common/components/category-combobox/category-combobox.tsx +499 -0
  1566. package/src/routes/products/common/components/category-combobox/index.ts +1 -0
  1567. package/src/routes/products/common/components/upload-media-form-item/index.ts +1 -0
  1568. package/src/routes/products/common/components/upload-media-form-item/upload-media-form-item.tsx +134 -0
  1569. package/src/routes/products/common/constants.ts +1 -0
  1570. package/src/routes/products/common/variant-pricing-form.tsx +99 -0
  1571. package/src/routes/products/product-attributes/components/product-attributes-form/index.ts +1 -0
  1572. package/src/routes/products/product-attributes/components/product-attributes-form/product-attributes-form.tsx +277 -0
  1573. package/src/routes/products/product-attributes/index.ts +1 -0
  1574. package/src/routes/products/product-attributes/product-attributes.tsx +33 -0
  1575. package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-general-section/index.ts +1 -0
  1576. package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-general-section/product-create-general-section.tsx +91 -0
  1577. package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-media-section/index.ts +1 -0
  1578. package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-media-section/product-create-details-media-section.tsx +338 -0
  1579. package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/index.ts +1 -0
  1580. package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +528 -0
  1581. package/src/routes/products/product-create/components/product-create-details-form/index.ts +1 -0
  1582. package/src/routes/products/product-create/components/product-create-details-form/product-create-details-form.tsx +44 -0
  1583. package/src/routes/products/product-create/components/product-create-form/index.ts +1 -0
  1584. package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +404 -0
  1585. package/src/routes/products/product-create/components/product-create-inventory-kit-form/components/product-create-inventory-kit-section/index.ts +1 -0
  1586. package/src/routes/products/product-create/components/product-create-inventory-kit-form/components/product-create-inventory-kit-section/product-create-inventory-kit-section.tsx +248 -0
  1587. package/src/routes/products/product-create/components/product-create-inventory-kit-form/index.ts +1 -0
  1588. package/src/routes/products/product-create/components/product-create-inventory-kit-form/product-create-inventory-kit-form.tsx +20 -0
  1589. package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-organize-attribute-section/index.ts +1 -0
  1590. package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-organize-attribute-section/product-create-details-attribute-section.tsx +155 -0
  1591. package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-organize-section/index.ts +1 -0
  1592. package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-organize-section/product-create-details-organize-section.tsx +248 -0
  1593. package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-sales-channel-stacked-modal/index.ts +1 -0
  1594. package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-sales-channel-stacked-modal/product-create-sales-channel-drawer.tsx +160 -0
  1595. package/src/routes/products/product-create/components/product-create-organize-form/constants.ts +1 -0
  1596. package/src/routes/products/product-create/components/product-create-organize-form/index.ts +1 -0
  1597. package/src/routes/products/product-create/components/product-create-organize-form/product-create-organize-form.tsx +33 -0
  1598. package/src/routes/products/product-create/components/product-create-variants-form/index.ts +1 -0
  1599. package/src/routes/products/product-create/components/product-create-variants-form/product-create-variants-form.tsx +204 -0
  1600. package/src/routes/products/product-create/constants.ts +163 -0
  1601. package/src/routes/products/product-create/index.ts +1 -0
  1602. package/src/routes/products/product-create/product-create.tsx +90 -0
  1603. package/src/routes/products/product-create/types.ts +6 -0
  1604. package/src/routes/products/product-create/utils.ts +118 -0
  1605. package/src/routes/products/product-create-option/components/create-product-option-form/create-product-option-form.tsx +122 -0
  1606. package/src/routes/products/product-create-option/components/create-product-option-form/index.ts +1 -0
  1607. package/src/routes/products/product-create-option/index.ts +1 -0
  1608. package/src/routes/products/product-create-option/product-create-option.tsx +30 -0
  1609. package/src/routes/products/product-create-variant/components/create-product-variant-form/constants.ts +44 -0
  1610. package/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx +387 -0
  1611. package/src/routes/products/product-create-variant/components/create-product-variant-form/details-tab.tsx +193 -0
  1612. package/src/routes/products/product-create-variant/components/create-product-variant-form/index.ts +1 -0
  1613. package/src/routes/products/product-create-variant/components/create-product-variant-form/inventory-kit-tab.tsx +188 -0
  1614. package/src/routes/products/product-create-variant/components/create-product-variant-form/pricing-tab.tsx +100 -0
  1615. package/src/routes/products/product-create-variant/index.ts +1 -0
  1616. package/src/routes/products/product-create-variant/product-create-variant.tsx +23 -0
  1617. package/src/routes/products/product-detail/breadcrumb.tsx +30 -0
  1618. package/src/routes/products/product-detail/components/product-attribute-section/index.ts +1 -0
  1619. package/src/routes/products/product-detail/components/product-attribute-section/product-attribute-section.tsx +53 -0
  1620. package/src/routes/products/product-detail/components/product-general-section/index.ts +1 -0
  1621. package/src/routes/products/product-detail/components/product-general-section/product-general-section.tsx +130 -0
  1622. package/src/routes/products/product-detail/components/product-media-section/index.ts +1 -0
  1623. package/src/routes/products/product-detail/components/product-media-section/product-media-section.tsx +220 -0
  1624. package/src/routes/products/product-detail/components/product-option-section/index.ts +1 -0
  1625. package/src/routes/products/product-detail/components/product-option-section/product-option-section.tsx +113 -0
  1626. package/src/routes/products/product-detail/components/product-organization-section/index.ts +1 -0
  1627. package/src/routes/products/product-detail/components/product-organization-section/product-organization-section.tsx +107 -0
  1628. package/src/routes/products/product-detail/components/product-sales-channel-section/index.ts +1 -0
  1629. package/src/routes/products/product-detail/components/product-sales-channel-section/product-sales-channel-section.tsx +106 -0
  1630. package/src/routes/products/product-detail/components/product-shipping-profile-section/index.ts +1 -0
  1631. package/src/routes/products/product-detail/components/product-shipping-profile-section/product-shipping-profile-section.tsx +51 -0
  1632. package/src/routes/products/product-detail/components/product-variant-section/index.ts +1 -0
  1633. package/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +468 -0
  1634. package/src/routes/products/product-detail/constants.ts +6 -0
  1635. package/src/routes/products/product-detail/index.ts +3 -0
  1636. package/src/routes/products/product-detail/loader.ts +24 -0
  1637. package/src/routes/products/product-detail/product-detail.tsx +81 -0
  1638. package/src/routes/products/product-edit/components/edit-product-form/edit-product-form.tsx +246 -0
  1639. package/src/routes/products/product-edit/components/edit-product-form/index.ts +1 -0
  1640. package/src/routes/products/product-edit/index.ts +1 -0
  1641. package/src/routes/products/product-edit/product-edit.tsx +36 -0
  1642. package/src/routes/products/product-edit-option/components/edit-product-option-form/edit-product-option-form.tsx +125 -0
  1643. package/src/routes/products/product-edit-option/components/edit-product-option-form/index.ts +1 -0
  1644. package/src/routes/products/product-edit-option/index.ts +1 -0
  1645. package/src/routes/products/product-edit-option/product-edit-option.tsx +35 -0
  1646. package/src/routes/products/product-export/components/export-filters.tsx +22 -0
  1647. package/src/routes/products/product-export/index.ts +1 -0
  1648. package/src/routes/products/product-export/product-export.tsx +67 -0
  1649. package/src/routes/products/product-image-variants-edit/components/variants-table-form/index.ts +1 -0
  1650. package/src/routes/products/product-image-variants-edit/components/variants-table-form/variants-table-form.tsx +264 -0
  1651. package/src/routes/products/product-image-variants-edit/index.ts +1 -0
  1652. package/src/routes/products/product-image-variants-edit/product-image-variants-edit.tsx +65 -0
  1653. package/src/routes/products/product-import/components/import-summary.tsx +50 -0
  1654. package/src/routes/products/product-import/components/upload-import.tsx +61 -0
  1655. package/src/routes/products/product-import/helpers/import-template.ts +12 -0
  1656. package/src/routes/products/product-import/index.ts +1 -0
  1657. package/src/routes/products/product-import/product-import.tsx +143 -0
  1658. package/src/routes/products/product-list/components/product-list-table/configurable-product-list-table.tsx +26 -0
  1659. package/src/routes/products/product-list/components/product-list-table/index.ts +1 -0
  1660. package/src/routes/products/product-list/components/product-list-table/product-list-table.tsx +203 -0
  1661. package/src/routes/products/product-list/components/product-list-table/product-table-adapter.tsx +51 -0
  1662. package/src/routes/products/product-list/components/product-list-table/use-product-table-filters.tsx +104 -0
  1663. package/src/routes/products/product-list/index.ts +2 -0
  1664. package/src/routes/products/product-list/loader.ts +28 -0
  1665. package/src/routes/products/product-list/product-list.tsx +18 -0
  1666. package/src/routes/products/product-media/components/edit-product-media-form/edit-product-media-form.tsx +457 -0
  1667. package/src/routes/products/product-media/components/edit-product-media-form/index.ts +1 -0
  1668. package/src/routes/products/product-media/components/product-media-gallery/index.ts +1 -0
  1669. package/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx +327 -0
  1670. package/src/routes/products/product-media/components/product-media-view/index.ts +1 -0
  1671. package/src/routes/products/product-media/components/product-media-view/product-media-view-context.tsx +9 -0
  1672. package/src/routes/products/product-media/components/product-media-view/product-media-view.tsx +54 -0
  1673. package/src/routes/products/product-media/components/product-media-view/use-product-media-view.tsx +14 -0
  1674. package/src/routes/products/product-media/index.ts +1 -0
  1675. package/src/routes/products/product-media/product-media.tsx +33 -0
  1676. package/src/routes/products/product-metadata/index.ts +1 -0
  1677. package/src/routes/products/product-metadata/product-metadata.tsx +28 -0
  1678. package/src/routes/products/product-organization/components/product-organization-form/index.ts +1 -0
  1679. package/src/routes/products/product-organization/components/product-organization-form/product-organization-form.tsx +218 -0
  1680. package/src/routes/products/product-organization/index.ts +1 -0
  1681. package/src/routes/products/product-organization/product-organization.tsx +32 -0
  1682. package/src/routes/products/product-prices/index.ts +1 -0
  1683. package/src/routes/products/product-prices/pricing-edit.tsx +149 -0
  1684. package/src/routes/products/product-prices/product-prices.tsx +26 -0
  1685. package/src/routes/products/product-sales-channels/components/edit-sales-channels-form/edit-sales-channels-form.tsx +155 -0
  1686. package/src/routes/products/product-sales-channels/components/edit-sales-channels-form/index.ts +1 -0
  1687. package/src/routes/products/product-sales-channels/index.ts +1 -0
  1688. package/src/routes/products/product-sales-channels/product-sales-channels.tsx +23 -0
  1689. package/src/routes/products/product-shipping-profile/components/product-organization-form/index.ts +1 -0
  1690. package/src/routes/products/product-shipping-profile/components/product-organization-form/product-shipping-profile-form.tsx +133 -0
  1691. package/src/routes/products/product-shipping-profile/index.ts +1 -0
  1692. package/src/routes/products/product-shipping-profile/product-shipping-profile.tsx +35 -0
  1693. package/src/routes/products/product-stock/components/product-stock-form/index.ts +1 -0
  1694. package/src/routes/products/product-stock/components/product-stock-form/product-stock-form.tsx +220 -0
  1695. package/src/routes/products/product-stock/hooks/use-product-stock-columns.tsx +227 -0
  1696. package/src/routes/products/product-stock/index.ts +2 -0
  1697. package/src/routes/products/product-stock/loader.ts +55 -0
  1698. package/src/routes/products/product-stock/product-stock.tsx +106 -0
  1699. package/src/routes/products/product-stock/schema.ts +33 -0
  1700. package/src/routes/products/product-stock/utils.ts +53 -0
  1701. package/src/routes/profile/profile-detail/components/profile-general-section/index.ts +1 -0
  1702. package/src/routes/profile/profile-detail/components/profile-general-section/profile-general-section.tsx +76 -0
  1703. package/src/routes/profile/profile-detail/index.ts +1 -0
  1704. package/src/routes/profile/profile-detail/profile-detail.tsx +30 -0
  1705. package/src/routes/profile/profile-edit/components/edit-profile-form/edit-profile-form.tsx +205 -0
  1706. package/src/routes/profile/profile-edit/index.ts +1 -0
  1707. package/src/routes/profile/profile-edit/profile-edit.tsx +26 -0
  1708. package/src/routes/promotions/common/edit-rules/components/edit-rules-form/edit-rules-form.tsx +76 -0
  1709. package/src/routes/promotions/common/edit-rules/components/edit-rules-form/form-schema.ts +32 -0
  1710. package/src/routes/promotions/common/edit-rules/components/edit-rules-form/index.ts +1 -0
  1711. package/src/routes/promotions/common/edit-rules/components/edit-rules-form/utils.ts +17 -0
  1712. package/src/routes/promotions/common/edit-rules/components/edit-rules-wrapper/edit-rules-wrapper.tsx +123 -0
  1713. package/src/routes/promotions/common/edit-rules/components/edit-rules-wrapper/index.ts +1 -0
  1714. package/src/routes/promotions/common/edit-rules/components/edit-rules-wrapper/utils.ts +9 -0
  1715. package/src/routes/promotions/common/edit-rules/components/rule-value-form-field/index.ts +1 -0
  1716. package/src/routes/promotions/common/edit-rules/components/rule-value-form-field/rule-value-form-field.tsx +168 -0
  1717. package/src/routes/promotions/common/edit-rules/components/rules-form-field/constants.ts +11 -0
  1718. package/src/routes/promotions/common/edit-rules/components/rules-form-field/index.ts +1 -0
  1719. package/src/routes/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx +450 -0
  1720. package/src/routes/promotions/common/edit-rules/edit-rules.tsx +63 -0
  1721. package/src/routes/promotions/common/edit-rules/index.ts +1 -0
  1722. package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +244 -0
  1723. package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/campaign-details.tsx +145 -0
  1724. package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/index.ts +1 -0
  1725. package/src/routes/promotions/promotion-add-campaign/index.ts +1 -0
  1726. package/src/routes/promotions/promotion-add-campaign/promotion-add-campaign.tsx +29 -0
  1727. package/src/routes/promotions/promotion-create/components/create-promotion-form/constants.ts +11 -0
  1728. package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +1086 -0
  1729. package/src/routes/promotions/promotion-create/components/create-promotion-form/form-schema.ts +62 -0
  1730. package/src/routes/promotions/promotion-create/components/create-promotion-form/index.ts +1 -0
  1731. package/src/routes/promotions/promotion-create/components/create-promotion-form/templates.ts +140 -0
  1732. package/src/routes/promotions/promotion-create/index.ts +1 -0
  1733. package/src/routes/promotions/promotion-create/promotion-create.tsx +10 -0
  1734. package/src/routes/promotions/promotion-detail/breadcrumb.tsx +22 -0
  1735. package/src/routes/promotions/promotion-detail/components/campaign-section/campaign-section.tsx +92 -0
  1736. package/src/routes/promotions/promotion-detail/components/campaign-section/index.ts +1 -0
  1737. package/src/routes/promotions/promotion-detail/components/promotion-conditions-section/index.ts +1 -0
  1738. package/src/routes/promotions/promotion-detail/components/promotion-conditions-section/promotion-conditions-section.tsx +105 -0
  1739. package/src/routes/promotions/promotion-detail/components/promotion-general-section/index.ts +1 -0
  1740. package/src/routes/promotions/promotion-detail/components/promotion-general-section/promotion-general-section.tsx +215 -0
  1741. package/src/routes/promotions/promotion-detail/index.ts +3 -0
  1742. package/src/routes/promotions/promotion-detail/loader.ts +16 -0
  1743. package/src/routes/promotions/promotion-detail/promotion-detail.tsx +72 -0
  1744. package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +455 -0
  1745. package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/index.ts +1 -0
  1746. package/src/routes/promotions/promotion-edit-details/index.ts +1 -0
  1747. package/src/routes/promotions/promotion-edit-details/promotion-edit-details.tsx +30 -0
  1748. package/src/routes/promotions/promotion-list/components/promotion-list-table/index.ts +1 -0
  1749. package/src/routes/promotions/promotion-list/components/promotion-list-table/promotion-list-table.tsx +158 -0
  1750. package/src/routes/promotions/promotion-list/index.ts +2 -0
  1751. package/src/routes/promotions/promotion-list/loader.ts +27 -0
  1752. package/src/routes/promotions/promotion-list/promotions-list.tsx +18 -0
  1753. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/index.ts +1 -0
  1754. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +177 -0
  1755. package/src/routes/refund-reasons/refund-reason-create/index.ts +1 -0
  1756. package/src/routes/refund-reasons/refund-reason-create/refund-reason-create.tsx +10 -0
  1757. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/index.ts +1 -0
  1758. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +141 -0
  1759. package/src/routes/refund-reasons/refund-reason-edit/index.ts +1 -0
  1760. package/src/routes/refund-reasons/refund-reason-edit/refund-reason-edit.tsx +33 -0
  1761. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/index.ts +1 -0
  1762. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +138 -0
  1763. package/src/routes/refund-reasons/refund-reason-list/index.ts +2 -0
  1764. package/src/routes/refund-reasons/refund-reason-list/loader.ts +16 -0
  1765. package/src/routes/refund-reasons/refund-reason-list/refund-reason-list.tsx +21 -0
  1766. package/src/routes/regions/common/constants.ts +4 -0
  1767. package/src/routes/regions/common/hooks/use-countries.tsx +68 -0
  1768. package/src/routes/regions/common/hooks/use-country-table-columns.tsx +25 -0
  1769. package/src/routes/regions/common/hooks/use-country-table-query.tsx +25 -0
  1770. package/src/routes/regions/region-add-countries/components/add-countries-form/add-countries-form.tsx +208 -0
  1771. package/src/routes/regions/region-add-countries/components/add-countries-form/index.ts +1 -0
  1772. package/src/routes/regions/region-add-countries/index.ts +1 -0
  1773. package/src/routes/regions/region-add-countries/region-add-countries.tsx +27 -0
  1774. package/src/routes/regions/region-create/components/create-region-form/create-region-form.tsx +523 -0
  1775. package/src/routes/regions/region-create/components/create-region-form/index.ts +1 -0
  1776. package/src/routes/regions/region-create/index.ts +1 -0
  1777. package/src/routes/regions/region-create/region-create.tsx +22 -0
  1778. package/src/routes/regions/region-detail/breadcrumb.tsx +27 -0
  1779. package/src/routes/regions/region-detail/components/region-country-section/index.ts +1 -0
  1780. package/src/routes/regions/region-detail/components/region-country-section/region-country-section.tsx +255 -0
  1781. package/src/routes/regions/region-detail/components/region-general-section/index.ts +1 -0
  1782. package/src/routes/regions/region-detail/components/region-general-section/region-general-section.tsx +138 -0
  1783. package/src/routes/regions/region-detail/constants.ts +2 -0
  1784. package/src/routes/regions/region-detail/index.ts +3 -0
  1785. package/src/routes/regions/region-detail/loader.ts +25 -0
  1786. package/src/routes/regions/region-detail/region-detail.tsx +77 -0
  1787. package/src/routes/regions/region-edit/components/edit-region-form/edit-region-form.tsx +251 -0
  1788. package/src/routes/regions/region-edit/components/edit-region-form/index.ts +1 -0
  1789. package/src/routes/regions/region-edit/index.ts +1 -0
  1790. package/src/routes/regions/region-edit/region-edit.tsx +78 -0
  1791. package/src/routes/regions/region-list/components/region-list-table/index.ts +1 -0
  1792. package/src/routes/regions/region-list/components/region-list-table/region-list-table.tsx +178 -0
  1793. package/src/routes/regions/region-list/index.ts +1 -0
  1794. package/src/routes/regions/region-list/region-list.tsx +18 -0
  1795. package/src/routes/regions/region-metadata/index.ts +1 -0
  1796. package/src/routes/regions/region-metadata/region-metadata.tsx +27 -0
  1797. package/src/routes/reservations/reservation-create/components/reservation-create-from/index.ts +1 -0
  1798. package/src/routes/reservations/reservation-create/components/reservation-create-from/reservation-create-from.tsx +311 -0
  1799. package/src/routes/reservations/reservation-create/index.ts +2 -0
  1800. package/src/routes/reservations/reservation-create/reservation-create.tsx +16 -0
  1801. package/src/routes/reservations/reservation-detail/breadcrumb.tsx +29 -0
  1802. package/src/routes/reservations/reservation-detail/components/edit-reservation/components/edit-reservation-form.tsx +215 -0
  1803. package/src/routes/reservations/reservation-detail/components/edit-reservation/components/index.tsx +1 -0
  1804. package/src/routes/reservations/reservation-detail/components/edit-reservation/edit-reservation-modal.tsx +53 -0
  1805. package/src/routes/reservations/reservation-detail/components/edit-reservation/index.ts +1 -0
  1806. package/src/routes/reservations/reservation-detail/components/reservation-general-section/index.ts +1 -0
  1807. package/src/routes/reservations/reservation-detail/components/reservation-general-section/reservation-general-section.tsx +90 -0
  1808. package/src/routes/reservations/reservation-detail/index.ts +3 -0
  1809. package/src/routes/reservations/reservation-detail/loader.ts +16 -0
  1810. package/src/routes/reservations/reservation-detail/reservation-detail.tsx +73 -0
  1811. package/src/routes/reservations/reservation-list/components/reservation-list-table/index.ts +1 -0
  1812. package/src/routes/reservations/reservation-list/components/reservation-list-table/reservation-actions.tsx +57 -0
  1813. package/src/routes/reservations/reservation-list/components/reservation-list-table/reservation-list-table.tsx +67 -0
  1814. package/src/routes/reservations/reservation-list/components/reservation-list-table/use-reservation-table-columns.tsx +107 -0
  1815. package/src/routes/reservations/reservation-list/components/reservation-list-table/use-reservation-table-filters.tsx +35 -0
  1816. package/src/routes/reservations/reservation-list/components/reservation-list-table/use-reservation-table-query.tsx +32 -0
  1817. package/src/routes/reservations/reservation-list/constants.ts +1 -0
  1818. package/src/routes/reservations/reservation-list/index.ts +1 -0
  1819. package/src/routes/reservations/reservation-list/reservation-list.tsx +18 -0
  1820. package/src/routes/reservations/reservation-metadata/index.ts +1 -0
  1821. package/src/routes/reservations/reservation-metadata/reservation-metadata.tsx +30 -0
  1822. package/src/routes/reset-password/index.ts +2 -0
  1823. package/src/routes/reset-password/reset-password.tsx +341 -0
  1824. package/src/routes/return-reasons/common/hooks/use-delete-return-reason-action.tsx +40 -0
  1825. package/src/routes/return-reasons/return-reason-create/components/return-reason-create-form/index.ts +1 -0
  1826. package/src/routes/return-reasons/return-reason-create/components/return-reason-create-form/return-reason-create-form.tsx +157 -0
  1827. package/src/routes/return-reasons/return-reason-create/index.ts +1 -0
  1828. package/src/routes/return-reasons/return-reason-create/return-reason-create.tsx +10 -0
  1829. package/src/routes/return-reasons/return-reason-edit/components/return-reason-edit-form/index.ts +1 -0
  1830. package/src/routes/return-reasons/return-reason-edit/components/return-reason-edit-form/return-reason-edit-form.tsx +141 -0
  1831. package/src/routes/return-reasons/return-reason-edit/index.ts +1 -0
  1832. package/src/routes/return-reasons/return-reason-edit/return-reason-edit.tsx +33 -0
  1833. package/src/routes/return-reasons/return-reason-list/components/return-reason-list-table/index.ts +1 -0
  1834. package/src/routes/return-reasons/return-reason-list/components/return-reason-list-table/return-reason-list-table.tsx +128 -0
  1835. package/src/routes/return-reasons/return-reason-list/index.ts +2 -0
  1836. package/src/routes/return-reasons/return-reason-list/loader.ts +21 -0
  1837. package/src/routes/return-reasons/return-reason-list/return-reason-list.tsx +21 -0
  1838. package/src/routes/sales-channels/sales-channel-add-products/components/add-products-to-sales-channel-form.tsx +240 -0
  1839. package/src/routes/sales-channels/sales-channel-add-products/components/index.ts +1 -0
  1840. package/src/routes/sales-channels/sales-channel-add-products/index.ts +1 -0
  1841. package/src/routes/sales-channels/sales-channel-add-products/sales-channel-add-products.tsx +26 -0
  1842. package/src/routes/sales-channels/sales-channel-create/components/create-sales-channel-form/create-sales-channel-form.tsx +154 -0
  1843. package/src/routes/sales-channels/sales-channel-create/components/create-sales-channel-form/index.ts +1 -0
  1844. package/src/routes/sales-channels/sales-channel-create/index.ts +1 -0
  1845. package/src/routes/sales-channels/sales-channel-create/sales-channel-create.tsx +10 -0
  1846. package/src/routes/sales-channels/sales-channel-detail/breadcrumb.tsx +23 -0
  1847. package/src/routes/sales-channels/sales-channel-detail/components/sales-channel-general-section/index.ts +1 -0
  1848. package/src/routes/sales-channels/sales-channel-detail/components/sales-channel-general-section/sales-channel-general-section.tsx +99 -0
  1849. package/src/routes/sales-channels/sales-channel-detail/components/sales-channel-product-section/index.ts +1 -0
  1850. package/src/routes/sales-channels/sales-channel-detail/components/sales-channel-product-section/sales-channel-product-section.tsx +255 -0
  1851. package/src/routes/sales-channels/sales-channel-detail/index.ts +3 -0
  1852. package/src/routes/sales-channels/sales-channel-detail/loader.ts +17 -0
  1853. package/src/routes/sales-channels/sales-channel-detail/sales-channel-detail.tsx +41 -0
  1854. package/src/routes/sales-channels/sales-channel-edit/components/edit-sales-channel-form/edit-sales-channel-form.tsx +136 -0
  1855. package/src/routes/sales-channels/sales-channel-edit/components/edit-sales-channel-form/index.ts +1 -0
  1856. package/src/routes/sales-channels/sales-channel-edit/index.ts +1 -0
  1857. package/src/routes/sales-channels/sales-channel-edit/sales-channel-edit.tsx +36 -0
  1858. package/src/routes/sales-channels/sales-channel-list/components/index.ts +1 -0
  1859. package/src/routes/sales-channels/sales-channel-list/components/sales-channel-list-table.tsx +158 -0
  1860. package/src/routes/sales-channels/sales-channel-list/index.ts +1 -0
  1861. package/src/routes/sales-channels/sales-channel-list/sales-channel-list.tsx +20 -0
  1862. package/src/routes/sales-channels/sales-channel-metadata/index.ts +1 -0
  1863. package/src/routes/sales-channels/sales-channel-metadata/sales-channel-metadata.tsx +32 -0
  1864. package/src/routes/settings/index.ts +1 -0
  1865. package/src/routes/settings/settings.tsx +15 -0
  1866. package/src/routes/shipping-option-types/common/hooks/use-delete-shipping-option-type-action.tsx +43 -0
  1867. package/src/routes/shipping-option-types/shipping-option-type-create/components/create-shipping-option-type-form/create-shipping-option-type-form.tsx +168 -0
  1868. package/src/routes/shipping-option-types/shipping-option-type-create/components/create-shipping-option-type-form/index.ts +1 -0
  1869. package/src/routes/shipping-option-types/shipping-option-type-create/index.ts +1 -0
  1870. package/src/routes/shipping-option-types/shipping-option-type-create/shipping-option-type-create.tsx +10 -0
  1871. package/src/routes/shipping-option-types/shipping-option-type-detail/breadcrumb.tsx +24 -0
  1872. package/src/routes/shipping-option-types/shipping-option-type-detail/components/shipping-option-type-general-section/index.ts +1 -0
  1873. package/src/routes/shipping-option-types/shipping-option-type-detail/components/shipping-option-type-general-section/shipping-option-type-general-section.tsx +66 -0
  1874. package/src/routes/shipping-option-types/shipping-option-type-detail/index.ts +3 -0
  1875. package/src/routes/shipping-option-types/shipping-option-type-detail/loader.ts +19 -0
  1876. package/src/routes/shipping-option-types/shipping-option-type-detail/shipping-option-type-detail.tsx +46 -0
  1877. package/src/routes/shipping-option-types/shipping-option-type-edit/components/edit-shipping-option-type-form/edit-shipping-option-type-form.tsx +145 -0
  1878. package/src/routes/shipping-option-types/shipping-option-type-edit/components/edit-shipping-option-type-form/index.ts +1 -0
  1879. package/src/routes/shipping-option-types/shipping-option-type-edit/index.ts +1 -0
  1880. package/src/routes/shipping-option-types/shipping-option-type-edit/shipping-option-type-edit.tsx +31 -0
  1881. package/src/routes/shipping-option-types/shipping-option-type-list/components/shipping-option-type-list-table/index.ts +1 -0
  1882. package/src/routes/shipping-option-types/shipping-option-type-list/components/shipping-option-type-list-table/shipping-option-type-list-table.tsx +99 -0
  1883. package/src/routes/shipping-option-types/shipping-option-type-list/components/shipping-option-type-list-table/shipping-option-type-table-row-actions.tsx +44 -0
  1884. package/src/routes/shipping-option-types/shipping-option-type-list/index.ts +1 -0
  1885. package/src/routes/shipping-option-types/shipping-option-type-list/shipping-option-type-list.tsx +18 -0
  1886. package/src/routes/shipping-profiles/shipping-profile-create/components/create-shipping-profile-form/create-shipping-profile-form.tsx +129 -0
  1887. package/src/routes/shipping-profiles/shipping-profile-create/components/create-shipping-profile-form/index.ts +1 -0
  1888. package/src/routes/shipping-profiles/shipping-profile-create/index.ts +1 -0
  1889. package/src/routes/shipping-profiles/shipping-profile-create/shipping-profile-create.tsx +10 -0
  1890. package/src/routes/shipping-profiles/shipping-profile-detail/breadcrumb.tsx +27 -0
  1891. package/src/routes/shipping-profiles/shipping-profile-detail/components/shipping-profile-general-section/index.ts +1 -0
  1892. package/src/routes/shipping-profiles/shipping-profile-detail/components/shipping-profile-general-section/shipping-profile-general-section.tsx +76 -0
  1893. package/src/routes/shipping-profiles/shipping-profile-detail/index.ts +3 -0
  1894. package/src/routes/shipping-profiles/shipping-profile-detail/loader.ts +17 -0
  1895. package/src/routes/shipping-profiles/shipping-profile-detail/shipping-profile-detail.tsx +47 -0
  1896. package/src/routes/shipping-profiles/shipping-profile-metadata/index.ts +1 -0
  1897. package/src/routes/shipping-profiles/shipping-profile-metadata/shipping-profile-metadata.tsx +31 -0
  1898. package/src/routes/shipping-profiles/shipping-profiles-list/components/shipping-profile-list-table/index.ts +1 -0
  1899. package/src/routes/shipping-profiles/shipping-profiles-list/components/shipping-profile-list-table/shipping-options-row-actions.tsx +64 -0
  1900. package/src/routes/shipping-profiles/shipping-profiles-list/components/shipping-profile-list-table/shipping-profile-list-table.tsx +78 -0
  1901. package/src/routes/shipping-profiles/shipping-profiles-list/components/shipping-profile-list-table/use-shipping-profile-table-columns.tsx +31 -0
  1902. package/src/routes/shipping-profiles/shipping-profiles-list/components/shipping-profile-list-table/use-shipping-profile-table-filters.tsx +33 -0
  1903. package/src/routes/shipping-profiles/shipping-profiles-list/components/shipping-profile-list-table/use-shipping-profile-table-query.tsx +30 -0
  1904. package/src/routes/shipping-profiles/shipping-profiles-list/index.ts +1 -0
  1905. package/src/routes/shipping-profiles/shipping-profiles-list/shipping-profile-list.tsx +18 -0
  1906. package/src/routes/store/common/hooks/use-currencies-table-columns.tsx +29 -0
  1907. package/src/routes/store/common/hooks/use-currencies-table-query.tsx +21 -0
  1908. package/src/routes/store/common/hooks/use-locales-table-columns.tsx +29 -0
  1909. package/src/routes/store/common/hooks/use-locales-table-query.tsx +21 -0
  1910. package/src/routes/store/store-add-currencies/components/add-currencies-form/add-currencies-form.tsx +308 -0
  1911. package/src/routes/store/store-add-currencies/index.ts +1 -0
  1912. package/src/routes/store/store-add-currencies/store-add-currencies.tsx +42 -0
  1913. package/src/routes/store/store-add-locales/components/add-locales-form/add-locales-form.tsx +231 -0
  1914. package/src/routes/store/store-add-locales/index.ts +1 -0
  1915. package/src/routes/store/store-add-locales/store-add-locales.tsx +29 -0
  1916. package/src/routes/store/store-detail/components/store-currency-section/index.ts +1 -0
  1917. package/src/routes/store/store-detail/components/store-currency-section/store-currency-section.tsx +387 -0
  1918. package/src/routes/store/store-detail/components/store-general-section/index.ts +1 -0
  1919. package/src/routes/store/store-detail/components/store-general-section/store-general-section.tsx +142 -0
  1920. package/src/routes/store/store-detail/components/store-locale-section/index.ts +1 -0
  1921. package/src/routes/store/store-detail/components/store-locale-section/store-locale-section.tsx +282 -0
  1922. package/src/routes/store/store-detail/index.ts +2 -0
  1923. package/src/routes/store/store-detail/loader.ts +18 -0
  1924. package/src/routes/store/store-detail/store-detail.tsx +48 -0
  1925. package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +232 -0
  1926. package/src/routes/store/store-edit/index.ts +1 -0
  1927. package/src/routes/store/store-edit/store-edit.tsx +25 -0
  1928. package/src/routes/store/store-metadata/index.ts +1 -0
  1929. package/src/routes/store/store-metadata/store-metadata.tsx +24 -0
  1930. package/src/routes/tax-regions/common/components/target-form/index.ts +1 -0
  1931. package/src/routes/tax-regions/common/components/target-form/target-form.tsx +970 -0
  1932. package/src/routes/tax-regions/common/components/target-item/index.ts +1 -0
  1933. package/src/routes/tax-regions/common/components/target-item/target-item.tsx +43 -0
  1934. package/src/routes/tax-regions/common/components/tax-override-card/index.ts +1 -0
  1935. package/src/routes/tax-regions/common/components/tax-override-card/tax-override-card.tsx +404 -0
  1936. package/src/routes/tax-regions/common/components/tax-override-table/index.ts +1 -0
  1937. package/src/routes/tax-regions/common/components/tax-override-table/tax-override-table.tsx +119 -0
  1938. package/src/routes/tax-regions/common/components/tax-rate-line/index.ts +1 -0
  1939. package/src/routes/tax-regions/common/components/tax-rate-line/tax-rate-line.tsx +82 -0
  1940. package/src/routes/tax-regions/common/components/tax-region-card/index.ts +1 -0
  1941. package/src/routes/tax-regions/common/components/tax-region-card/tax-region-card.tsx +218 -0
  1942. package/src/routes/tax-regions/common/components/tax-region-table/index.ts +1 -0
  1943. package/src/routes/tax-regions/common/components/tax-region-table/tax-region-table.tsx +122 -0
  1944. package/src/routes/tax-regions/common/constants.ts +8 -0
  1945. package/src/routes/tax-regions/common/hooks/use-tax-override-table.tsx +92 -0
  1946. package/src/routes/tax-regions/common/hooks/use-tax-region-table.tsx +92 -0
  1947. package/src/routes/tax-regions/common/hooks.ts +79 -0
  1948. package/src/routes/tax-regions/common/schemas.ts +16 -0
  1949. package/src/routes/tax-regions/common/utils.ts +12 -0
  1950. package/src/routes/tax-regions/tax-region-create/components/tax-region-create-form/index.ts +1 -0
  1951. package/src/routes/tax-regions/tax-region-create/components/tax-region-create-form/tax-region-create-form.tsx +276 -0
  1952. package/src/routes/tax-regions/tax-region-create/index.ts +3 -0
  1953. package/src/routes/tax-regions/tax-region-create/tax-region-create.tsx +10 -0
  1954. package/src/routes/tax-regions/tax-region-detail/breadcrumb.tsx +29 -0
  1955. package/src/routes/tax-regions/tax-region-detail/components/index.ts +2 -0
  1956. package/src/routes/tax-regions/tax-region-detail/components/tax-region-detail-section/index.ts +1 -0
  1957. package/src/routes/tax-regions/tax-region-detail/components/tax-region-detail-section/tax-region-detail-section.tsx +41 -0
  1958. package/src/routes/tax-regions/tax-region-detail/components/tax-region-override-section/index.ts +1 -0
  1959. package/src/routes/tax-regions/tax-region-detail/components/tax-region-override-section/tax-region-override-section.tsx +66 -0
  1960. package/src/routes/tax-regions/tax-region-detail/components/tax-region-province-section/index.ts +1 -0
  1961. package/src/routes/tax-regions/tax-region-detail/components/tax-region-province-section/tax-region-province-section.tsx +72 -0
  1962. package/src/routes/tax-regions/tax-region-detail/components/tax-region-sublevel-alert/index.ts +1 -0
  1963. package/src/routes/tax-regions/tax-region-detail/components/tax-region-sublevel-alert/tax-region-sublevel-alert.tsx +62 -0
  1964. package/src/routes/tax-regions/tax-region-detail/index.ts +5 -0
  1965. package/src/routes/tax-regions/tax-region-detail/loader.ts +16 -0
  1966. package/src/routes/tax-regions/tax-region-detail/tax-region-detail.tsx +65 -0
  1967. package/src/routes/tax-regions/tax-region-detail/tax-region-provider-section/index.ts +1 -0
  1968. package/src/routes/tax-regions/tax-region-detail/tax-region-provider-section/tax-region-provider-section.tsx +28 -0
  1969. package/src/routes/tax-regions/tax-region-edit/components/tax-region-edit/index.ts +1 -0
  1970. package/src/routes/tax-regions/tax-region-edit/components/tax-region-edit/tax-region-edit-form.tsx +109 -0
  1971. package/src/routes/tax-regions/tax-region-edit/index.ts +1 -0
  1972. package/src/routes/tax-regions/tax-region-edit/tax-region-edit.tsx +33 -0
  1973. package/src/routes/tax-regions/tax-region-list/components/tax-region-list-view/index.ts +1 -0
  1974. package/src/routes/tax-regions/tax-region-list/components/tax-region-list-view/tax-region-list-view.tsx +58 -0
  1975. package/src/routes/tax-regions/tax-region-list/index.ts +1 -0
  1976. package/src/routes/tax-regions/tax-region-list/tax-region-list.tsx +19 -0
  1977. package/src/routes/tax-regions/tax-region-metadata/index.ts +1 -0
  1978. package/src/routes/tax-regions/tax-region-metadata/tax-region-metadata.tsx +31 -0
  1979. package/src/routes/tax-regions/tax-region-province-create/components/tax-region-province-create-form/index.ts +1 -0
  1980. package/src/routes/tax-regions/tax-region-province-create/components/tax-region-province-create-form/tax-region-province-create-form.tsx +249 -0
  1981. package/src/routes/tax-regions/tax-region-province-create/index.ts +3 -0
  1982. package/src/routes/tax-regions/tax-region-province-create/tax-region-province-create.tsx +22 -0
  1983. package/src/routes/tax-regions/tax-region-province-detail/breadcrumb.tsx +32 -0
  1984. package/src/routes/tax-regions/tax-region-province-detail/components/index.ts +2 -0
  1985. package/src/routes/tax-regions/tax-region-province-detail/components/tax-region-province-detail-section/index.ts +1 -0
  1986. package/src/routes/tax-regions/tax-region-province-detail/components/tax-region-province-detail-section/tax-region-detail-section.tsx +42 -0
  1987. package/src/routes/tax-regions/tax-region-province-detail/components/tax-region-province-override-section/index.ts +1 -0
  1988. package/src/routes/tax-regions/tax-region-province-detail/components/tax-region-province-override-section/tax-region-province-override-section.tsx +65 -0
  1989. package/src/routes/tax-regions/tax-region-province-detail/index.ts +5 -0
  1990. package/src/routes/tax-regions/tax-region-province-detail/loader.ts +16 -0
  1991. package/src/routes/tax-regions/tax-region-province-detail/tax-region-detail.tsx +49 -0
  1992. package/src/routes/tax-regions/tax-region-tax-override-create/components/tax-region-override-create-form/index.ts +1 -0
  1993. package/src/routes/tax-regions/tax-region-tax-override-create/components/tax-region-override-create-form/tax-region-tax-override-create.tsx +675 -0
  1994. package/src/routes/tax-regions/tax-region-tax-override-create/index.ts +1 -0
  1995. package/src/routes/tax-regions/tax-region-tax-override-create/tax-region-tax-override-create.tsx +24 -0
  1996. package/src/routes/tax-regions/tax-region-tax-override-edit/components/tax-region-tax-override-edit-form/index.ts +1 -0
  1997. package/src/routes/tax-regions/tax-region-tax-override-edit/components/tax-region-tax-override-edit-form/tax-region-tax-override-edit-form.tsx +652 -0
  1998. package/src/routes/tax-regions/tax-region-tax-override-edit/index.ts +1 -0
  1999. package/src/routes/tax-regions/tax-region-tax-override-edit/tax-region-tax-override-edit.tsx +211 -0
  2000. package/src/routes/tax-regions/tax-region-tax-override-edit/types.ts +11 -0
  2001. package/src/routes/tax-regions/tax-region-tax-rate-create/components/tax-region-tax-rate-create-form/index.ts +1 -0
  2002. package/src/routes/tax-regions/tax-region-tax-rate-create/components/tax-region-tax-rate-create-form/tax-region-tax-rate-create-form.tsx +180 -0
  2003. package/src/routes/tax-regions/tax-region-tax-rate-create/index.ts +1 -0
  2004. package/src/routes/tax-regions/tax-region-tax-rate-create/tax-region-tax-rate-create.tsx +29 -0
  2005. package/src/routes/tax-regions/tax-region-tax-rate-edit/components/tax-region-tax-rate-edit-form/index.ts +1 -0
  2006. package/src/routes/tax-regions/tax-region-tax-rate-edit/components/tax-region-tax-rate-edit-form/tax-region-tax-rate-edit-form.tsx +159 -0
  2007. package/src/routes/tax-regions/tax-region-tax-rate-edit/index.ts +1 -0
  2008. package/src/routes/tax-regions/tax-region-tax-rate-edit/tax-region-edit.tsx +38 -0
  2009. package/src/routes/translations/add-locales/add-locales.tsx +29 -0
  2010. package/src/routes/translations/add-locales/index.tsx +1 -0
  2011. package/src/routes/translations/settings/components/batch-translation-settings-form/batch-translation-settings-form.tsx +246 -0
  2012. package/src/routes/translations/settings/components/entity-selector-tree/entity-selector-tree.tsx +288 -0
  2013. package/src/routes/translations/settings/components/selector-tree-filter/selector-tree-filter.tsx +88 -0
  2014. package/src/routes/translations/settings/index.tsx +2 -0
  2015. package/src/routes/translations/settings/settings.tsx +35 -0
  2016. package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +85 -0
  2017. package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +48 -0
  2018. package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +285 -0
  2019. package/src/routes/translations/translation-list/index.tsx +1 -0
  2020. package/src/routes/translations/translation-list/translation-list.tsx +188 -0
  2021. package/src/routes/translations/translations-edit/components/translations-edit-form/index.ts +1 -0
  2022. package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +747 -0
  2023. package/src/routes/translations/translations-edit/index.ts +1 -0
  2024. package/src/routes/translations/translations-edit/translations-edit.tsx +85 -0
  2025. package/src/routes/users/user-detail/breadcrumb.tsx +24 -0
  2026. package/src/routes/users/user-detail/components/user-general-section/index.ts +1 -0
  2027. package/src/routes/users/user-detail/components/user-general-section/user-general-section.tsx +86 -0
  2028. package/src/routes/users/user-detail/index.ts +3 -0
  2029. package/src/routes/users/user-detail/loader.ts +17 -0
  2030. package/src/routes/users/user-detail/user-detail.tsx +47 -0
  2031. package/src/routes/users/user-edit/components/edit-user-form/edit-user-form.tsx +97 -0
  2032. package/src/routes/users/user-edit/components/edit-user-form/index.ts +1 -0
  2033. package/src/routes/users/user-edit/index.ts +1 -0
  2034. package/src/routes/users/user-edit/user-edit.tsx +25 -0
  2035. package/src/routes/users/user-invite/components/invite-user-form/invite-user-form.tsx +345 -0
  2036. package/src/routes/users/user-invite/index.ts +1 -0
  2037. package/src/routes/users/user-invite/user-invite.tsx +10 -0
  2038. package/src/routes/users/user-list/components/user-list-table/index.ts +1 -0
  2039. package/src/routes/users/user-list/components/user-list-table/user-list-table.tsx +131 -0
  2040. package/src/routes/users/user-list/index.ts +1 -0
  2041. package/src/routes/users/user-list/user-list.tsx +18 -0
  2042. package/src/routes/users/user-metadata/index.ts +1 -0
  2043. package/src/routes/users/user-metadata/user-metadata.tsx +27 -0
  2044. package/src/routes/workflow-executions/constants.ts +38 -0
  2045. package/src/routes/workflow-executions/types.ts +28 -0
  2046. package/src/routes/workflow-executions/utils.ts +103 -0
  2047. package/src/routes/workflow-executions/workflow-execution-detail/breadcrumb.tsx +26 -0
  2048. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-general-section/index.ts +1 -0
  2049. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-general-section/workflow-execution-general-section.tsx +120 -0
  2050. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-history-section/index.ts +1 -0
  2051. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-history-section/workflow-execution-history-section.tsx +334 -0
  2052. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-payload-section/index.ts +1 -0
  2053. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-payload-section/workflow-execution-payload-section.tsx +24 -0
  2054. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/index.ts +1 -0
  2055. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/workflow-execution-timeline-section.tsx +446 -0
  2056. package/src/routes/workflow-executions/workflow-execution-detail/index.ts +3 -0
  2057. package/src/routes/workflow-executions/workflow-execution-detail/loader.ts +19 -0
  2058. package/src/routes/workflow-executions/workflow-execution-detail/workflow-detail.tsx +43 -0
  2059. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/index.ts +1 -0
  2060. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/use-workflow-execution-table-columns.tsx +72 -0
  2061. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/use-workflow-execution-table-query.tsx +25 -0
  2062. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/workflow-execution-list-table.tsx +69 -0
  2063. package/src/routes/workflow-executions/workflow-execution-list/index.ts +1 -0
  2064. package/src/routes/workflow-executions/workflow-execution-list/workflow-execution-list.tsx +20 -0
  2065. package/src/utils/column-utils.ts +71 -0
  2066. package/src/vite-env.d.ts +20 -0
@@ -0,0 +1,1288 @@
1
+ import {
2
+ ReturnShippingPlaceholder
3
+ } from "./chunk-P3DRE4IY.mjs";
4
+ import {
5
+ getReturnableQuantity
6
+ } from "./chunk-PXZ7QYKX.mjs";
7
+ import {
8
+ DEFAULT_FIELDS
9
+ } from "./chunk-C7F7MMXS.mjs";
10
+ import {
11
+ useAddReturnItem,
12
+ useAddReturnShipping,
13
+ useCancelReturnRequest,
14
+ useConfirmReturnRequest,
15
+ useDeleteReturnShipping,
16
+ useInitiateReturn,
17
+ useRemoveReturnItem,
18
+ useReturn,
19
+ useUpdateReturn,
20
+ useUpdateReturnItem,
21
+ useUpdateReturnShipping
22
+ } from "./chunk-3TAD7FW4.mjs";
23
+ import {
24
+ MoneyAmountCell
25
+ } from "./chunk-BCEWAWGA.mjs";
26
+ import {
27
+ ProductCell,
28
+ ProductHeader
29
+ } from "./chunk-UCZNM66J.mjs";
30
+ import {
31
+ getStylizedAmount
32
+ } from "./chunk-X6BAAGCL.mjs";
33
+ import "./chunk-P3UUX2T6.mjs";
34
+ import "./chunk-LQTHYS2Z.mjs";
35
+ import {
36
+ _DataTable,
37
+ useDataTable
38
+ } from "./chunk-MKJPYPAH.mjs";
39
+ import "./chunk-T7THKDM2.mjs";
40
+ import "./chunk-3VXYG7KG.mjs";
41
+ import {
42
+ Combobox
43
+ } from "./chunk-QDRW4DAC.mjs";
44
+ import {
45
+ currencies
46
+ } from "./chunk-DK4WIVY6.mjs";
47
+ import "./chunk-GGTFPFCV.mjs";
48
+ import {
49
+ useQueryParams
50
+ } from "./chunk-C76H5USB.mjs";
51
+ import "./chunk-DFFLVEZ5.mjs";
52
+ import "./chunk-IUCDCPJU.mjs";
53
+ import {
54
+ KeyboundForm
55
+ } from "./chunk-6HTZNHPT.mjs";
56
+ import {
57
+ StackedFocusModal
58
+ } from "./chunk-HKYVPRUA.mjs";
59
+ import {
60
+ RouteFocusModal,
61
+ useRouteModal,
62
+ useStackedModal
63
+ } from "./chunk-CRBKNYSH.mjs";
64
+ import {
65
+ useReturnReasons
66
+ } from "./chunk-TU3OVBKQ.mjs";
67
+ import {
68
+ Thumbnail
69
+ } from "./chunk-CQWBG33R.mjs";
70
+ import "./chunk-YWU55M6Z.mjs";
71
+ import {
72
+ ActionMenu
73
+ } from "./chunk-S3REQHPQ.mjs";
74
+ import "./chunk-OAHCJFG3.mjs";
75
+ import "./chunk-S4DMV3ZT.mjs";
76
+ import "./chunk-535OVBXR.mjs";
77
+ import {
78
+ Form
79
+ } from "./chunk-ND3ODI36.mjs";
80
+ import {
81
+ useShippingOptions
82
+ } from "./chunk-2PCPX3L2.mjs";
83
+ import {
84
+ useOrder,
85
+ useOrderPreview
86
+ } from "./chunk-XJYL2XTV.mjs";
87
+ import "./chunk-DXWAKJTM.mjs";
88
+ import {
89
+ useStockLocations
90
+ } from "./chunk-XP4VHZBM.mjs";
91
+ import "./chunk-452UKZW6.mjs";
92
+ import "./chunk-7AXHHXCX.mjs";
93
+ import "./chunk-FXYH54JP.mjs";
94
+ import "./chunk-774WSTCC.mjs";
95
+ import {
96
+ sdk
97
+ } from "./chunk-DTY37DDZ.mjs";
98
+ import "./chunk-QZ7TP4HQ.mjs";
99
+
100
+ // src/routes/orders/order-create-return/return-create.tsx
101
+ import { useNavigate, useParams } from "react-router-dom";
102
+ import { useEffect as useEffect2, useState as useState3 } from "react";
103
+ import { useTranslation as useTranslation6 } from "react-i18next";
104
+ import { toast as toast2 } from "@acmekit/ui";
105
+
106
+ // src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx
107
+ import { zodResolver } from "@hookform/resolvers/zod";
108
+ import { PencilSquare } from "@acmekit/icons";
109
+ import {
110
+ Alert,
111
+ Button,
112
+ CurrencyInput,
113
+ Heading,
114
+ IconButton as IconButton2,
115
+ Switch,
116
+ Text as Text2,
117
+ toast,
118
+ usePrompt
119
+ } from "@acmekit/ui";
120
+ import { useEffect, useMemo as useMemo3, useState as useState2 } from "react";
121
+ import { useFieldArray, useForm } from "react-hook-form";
122
+ import { useTranslation as useTranslation5 } from "react-i18next";
123
+
124
+ // src/routes/orders/order-create-return/components/add-return-items-table/add-return-items-table.tsx
125
+ import { useMemo as useMemo2, useState } from "react";
126
+ import { useTranslation as useTranslation3 } from "react-i18next";
127
+
128
+ // src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-columns.tsx
129
+ import { useMemo } from "react";
130
+ import { Checkbox } from "@acmekit/ui";
131
+ import { createColumnHelper } from "@tanstack/react-table";
132
+ import { useTranslation } from "react-i18next";
133
+ import { jsx } from "react/jsx-runtime";
134
+ var columnHelper = createColumnHelper();
135
+ var useReturnItemTableColumns = (currencyCode) => {
136
+ const { t } = useTranslation();
137
+ return useMemo(
138
+ () => [
139
+ columnHelper.display({
140
+ id: "select",
141
+ header: ({ table }) => {
142
+ return /* @__PURE__ */ jsx(
143
+ Checkbox,
144
+ {
145
+ checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
146
+ onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
147
+ }
148
+ );
149
+ },
150
+ cell: ({ row }) => {
151
+ const isSelectable = row.getCanSelect();
152
+ return /* @__PURE__ */ jsx(
153
+ Checkbox,
154
+ {
155
+ disabled: !isSelectable,
156
+ checked: row.getIsSelected(),
157
+ onCheckedChange: (value) => row.toggleSelected(!!value),
158
+ onClick: (e) => {
159
+ e.stopPropagation();
160
+ }
161
+ }
162
+ );
163
+ }
164
+ }),
165
+ columnHelper.display({
166
+ id: "product",
167
+ header: () => /* @__PURE__ */ jsx(ProductHeader, {}),
168
+ cell: ({ row }) => /* @__PURE__ */ jsx(
169
+ ProductCell,
170
+ {
171
+ product: {
172
+ thumbnail: row.original.thumbnail,
173
+ title: row.original.product_title
174
+ }
175
+ }
176
+ )
177
+ }),
178
+ columnHelper.accessor("variant.sku", {
179
+ header: t("fields.sku"),
180
+ cell: ({ getValue }) => {
181
+ return getValue() || "-";
182
+ }
183
+ }),
184
+ columnHelper.accessor("variant.title", {
185
+ header: t("fields.variant")
186
+ }),
187
+ columnHelper.accessor("quantity", {
188
+ header: () => /* @__PURE__ */ jsx("div", { className: "flex size-full items-center overflow-hidden text-right", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: t("fields.quantity") }) }),
189
+ cell: ({ getValue, row }) => {
190
+ return getReturnableQuantity(row.original);
191
+ }
192
+ }),
193
+ columnHelper.accessor("refundable_total", {
194
+ header: () => /* @__PURE__ */ jsx("div", { className: "flex size-full items-center justify-end overflow-hidden text-right", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: t("fields.price") }) }),
195
+ cell: ({ getValue }) => {
196
+ const amount = getValue() || 0;
197
+ const stylized = getStylizedAmount(amount, currencyCode);
198
+ return /* @__PURE__ */ jsx("div", { className: "flex size-full items-center justify-end overflow-hidden text-right", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: stylized }) });
199
+ }
200
+ })
201
+ ],
202
+ [t, currencyCode]
203
+ );
204
+ };
205
+
206
+ // src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-filters.tsx
207
+ import { useTranslation as useTranslation2 } from "react-i18next";
208
+ var useReturnItemTableFilters = () => {
209
+ const { t } = useTranslation2();
210
+ const filters = [
211
+ {
212
+ key: "returnable_quantity",
213
+ label: t("orders.returns.returnableQuantityLabel"),
214
+ type: "number"
215
+ },
216
+ {
217
+ key: "refundable_amount",
218
+ label: t("orders.returns.refundableAmountLabel"),
219
+ type: "number"
220
+ },
221
+ {
222
+ key: "created_at",
223
+ label: t("fields.createdAt"),
224
+ type: "date"
225
+ },
226
+ {
227
+ key: "updated_at",
228
+ label: t("fields.updatedAt"),
229
+ type: "date"
230
+ }
231
+ ];
232
+ return filters;
233
+ };
234
+
235
+ // src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-query.tsx
236
+ var useReturnItemTableQuery = ({
237
+ pageSize = 50,
238
+ prefix
239
+ }) => {
240
+ const raw = useQueryParams(
241
+ [
242
+ "q",
243
+ "offset",
244
+ "order",
245
+ "created_at",
246
+ "updated_at",
247
+ "returnable_quantity",
248
+ "refundable_amount"
249
+ ],
250
+ prefix
251
+ );
252
+ const {
253
+ offset,
254
+ created_at,
255
+ updated_at,
256
+ refundable_amount,
257
+ returnable_quantity,
258
+ ...rest
259
+ } = raw;
260
+ const searchParams = {
261
+ ...rest,
262
+ limit: pageSize,
263
+ offset: offset ? Number(offset) : 0,
264
+ created_at: created_at ? JSON.parse(created_at) : void 0,
265
+ updated_at: updated_at ? JSON.parse(updated_at) : void 0,
266
+ refundable_amount: refundable_amount ? JSON.parse(refundable_amount) : void 0,
267
+ returnable_quantity: returnable_quantity ? JSON.parse(returnable_quantity) : void 0
268
+ };
269
+ return { searchParams, raw };
270
+ };
271
+
272
+ // src/routes/orders/order-create-return/components/add-return-items-table/add-return-items-table.tsx
273
+ import { jsx as jsx2 } from "react/jsx-runtime";
274
+ var PAGE_SIZE = 50;
275
+ var PREFIX = "rit";
276
+ var AddReturnItemsTable = ({
277
+ onSelectionChange,
278
+ selectedItems: selectedItems2,
279
+ items,
280
+ currencyCode
281
+ }) => {
282
+ const { t } = useTranslation3();
283
+ const [rowSelection, setRowSelection] = useState(
284
+ selectedItems2.reduce((acc, id) => {
285
+ acc[id] = true;
286
+ return acc;
287
+ }, {})
288
+ );
289
+ const updater = (fn) => {
290
+ const newState = typeof fn === "function" ? fn(rowSelection) : fn;
291
+ setRowSelection(newState);
292
+ onSelectionChange(Object.keys(newState));
293
+ };
294
+ const { searchParams, raw } = useReturnItemTableQuery({
295
+ pageSize: PAGE_SIZE,
296
+ prefix: PREFIX
297
+ });
298
+ const queriedItems = useMemo2(() => {
299
+ const {
300
+ order,
301
+ offset,
302
+ limit,
303
+ q,
304
+ created_at,
305
+ updated_at,
306
+ refundable_amount,
307
+ returnable_quantity
308
+ } = searchParams;
309
+ let results = items;
310
+ if (q) {
311
+ results = results.filter((i) => {
312
+ return i.product_title.toLowerCase().includes(q.toLowerCase()) || i.variant_title.toLowerCase().includes(q.toLowerCase()) || i.variant_sku?.toLowerCase().includes(q.toLowerCase());
313
+ });
314
+ }
315
+ if (order) {
316
+ const direction = order[0] === "-" ? "desc" : "asc";
317
+ const field = order.replace("-", "");
318
+ results = sortItems(results, field, direction);
319
+ }
320
+ if (created_at) {
321
+ results = filterByDate(results, created_at, "created_at");
322
+ }
323
+ if (updated_at) {
324
+ results = filterByDate(results, updated_at, "updated_at");
325
+ }
326
+ if (returnable_quantity) {
327
+ results = filterByNumber(
328
+ results,
329
+ returnable_quantity,
330
+ "returnable_quantity",
331
+ currencyCode
332
+ );
333
+ }
334
+ if (refundable_amount) {
335
+ results = filterByNumber(
336
+ results,
337
+ refundable_amount,
338
+ "refundable_amount",
339
+ currencyCode
340
+ );
341
+ }
342
+ return results.slice(offset, offset + limit);
343
+ }, [items, currencyCode, searchParams]);
344
+ const columns = useReturnItemTableColumns(currencyCode);
345
+ const filters = useReturnItemTableFilters();
346
+ const { table } = useDataTable({
347
+ data: queriedItems,
348
+ columns,
349
+ count: queriedItems.length,
350
+ enablePagination: true,
351
+ getRowId: (row) => row.id,
352
+ pageSize: PAGE_SIZE,
353
+ enableRowSelection: (row) => {
354
+ return getReturnableQuantity(row.original) > 0;
355
+ },
356
+ rowSelection: {
357
+ state: rowSelection,
358
+ updater
359
+ }
360
+ });
361
+ return /* @__PURE__ */ jsx2("div", { className: "flex size-full flex-col overflow-hidden", children: /* @__PURE__ */ jsx2(
362
+ _DataTable,
363
+ {
364
+ table,
365
+ columns,
366
+ pageSize: PAGE_SIZE,
367
+ count: queriedItems.length,
368
+ filters,
369
+ pagination: true,
370
+ layout: "fill",
371
+ search: true,
372
+ orderBy: [
373
+ { key: "product_title", label: t("fields.product") },
374
+ { key: "variant_title", label: t("fields.variant") },
375
+ { key: "sku", label: t("fields.sku") },
376
+ {
377
+ key: "returnable_quantity",
378
+ label: t("orders.fields.returnableQuantity")
379
+ },
380
+ {
381
+ key: "refundable_amount",
382
+ label: t("orders.fields.refundableAmount")
383
+ }
384
+ ],
385
+ prefix: PREFIX,
386
+ queryObject: raw
387
+ }
388
+ ) });
389
+ };
390
+ var sortItems = (items, field, direction) => {
391
+ return items.sort((a, b) => {
392
+ let aValue;
393
+ let bValue;
394
+ if (field === "product_title") {
395
+ aValue = a.product_title;
396
+ bValue = b.product_title;
397
+ } else if (field === "variant_title") {
398
+ aValue = a.variant_title;
399
+ bValue = b.variant_title;
400
+ } else if (field === "sku") {
401
+ aValue = a.variant_sku;
402
+ bValue = b.variant_sku;
403
+ } else if (field === "returnable_quantity") {
404
+ aValue = a.quantity - (a.returned_quantity || 0);
405
+ bValue = b.quantity - (b.returned_quantity || 0);
406
+ } else if (field === "refundable_amount") {
407
+ aValue = a.refundable || 0;
408
+ bValue = b.refundable || 0;
409
+ }
410
+ if (aValue < bValue) {
411
+ return direction === "asc" ? -1 : 1;
412
+ }
413
+ if (aValue > bValue) {
414
+ return direction === "asc" ? 1 : -1;
415
+ }
416
+ return 0;
417
+ });
418
+ };
419
+ var filterByDate = (items, date, field) => {
420
+ const { gt, gte, lt, lte } = date;
421
+ return items.filter((i) => {
422
+ const itemDate = new Date(i[field]);
423
+ let isValid = true;
424
+ if (gt) {
425
+ isValid = isValid && itemDate > new Date(gt);
426
+ }
427
+ if (gte) {
428
+ isValid = isValid && itemDate >= new Date(gte);
429
+ }
430
+ if (lt) {
431
+ isValid = isValid && itemDate < new Date(lt);
432
+ }
433
+ if (lte) {
434
+ isValid = isValid && itemDate <= new Date(lte);
435
+ }
436
+ return isValid;
437
+ });
438
+ };
439
+ var defaultOperators = {
440
+ eq: void 0,
441
+ gt: void 0,
442
+ gte: void 0,
443
+ lt: void 0,
444
+ lte: void 0
445
+ };
446
+ var filterByNumber = (items, value, field, currency_code) => {
447
+ const { eq, gt, lt, gte, lte } = typeof value === "object" ? { ...defaultOperators, ...value } : { ...defaultOperators, eq: value };
448
+ return items.filter((i) => {
449
+ const returnableQuantity = i.quantity - (i.returned_quantity || 0);
450
+ const refundableAmount = getStylizedAmount(i.refundable || 0, currency_code);
451
+ const itemValue = field === "returnable_quantity" ? returnableQuantity : refundableAmount;
452
+ if (eq) {
453
+ return itemValue === eq;
454
+ }
455
+ let isValid = true;
456
+ if (gt) {
457
+ isValid = isValid && itemValue > gt;
458
+ }
459
+ if (gte) {
460
+ isValid = isValid && itemValue >= gte;
461
+ }
462
+ if (lt) {
463
+ isValid = isValid && itemValue < lt;
464
+ }
465
+ if (lte) {
466
+ isValid = isValid && itemValue <= lte;
467
+ }
468
+ return isValid;
469
+ });
470
+ };
471
+
472
+ // src/routes/orders/order-create-return/components/return-create-form/return-item.tsx
473
+ import { useTranslation as useTranslation4 } from "react-i18next";
474
+ import { IconButton, Input, Text } from "@acmekit/ui";
475
+ import { ChatBubble, DocumentText, XCircle, XMark } from "@acmekit/icons";
476
+ import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
477
+ function ReturnItem({
478
+ item,
479
+ previewItem,
480
+ currencyCode,
481
+ form,
482
+ onRemove,
483
+ onUpdate,
484
+ index
485
+ }) {
486
+ const { t } = useTranslation4();
487
+ const { return_reasons = [] } = useReturnReasons({ fields: "+label" });
488
+ const formItem = form.watch(`items.${index}`);
489
+ const showReturnReason = typeof formItem.reason_id === "string";
490
+ const showNote = typeof formItem.note === "string";
491
+ return /* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest my-2 rounded-xl ", children: [
492
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-x-2 gap-y-2 border-b p-3 text-sm md:flex-row", children: [
493
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center gap-x-3", children: [
494
+ /* @__PURE__ */ jsx3(Thumbnail, { src: item.thumbnail }),
495
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
496
+ /* @__PURE__ */ jsxs("div", { children: [
497
+ /* @__PURE__ */ jsxs(Text, { className: "txt-small", as: "span", weight: "plus", children: [
498
+ item.title,
499
+ " "
500
+ ] }),
501
+ item.variant_sku && /* @__PURE__ */ jsxs("span", { children: [
502
+ "(",
503
+ item.variant_sku,
504
+ ")"
505
+ ] })
506
+ ] }),
507
+ /* @__PURE__ */ jsx3(Text, { as: "div", className: "text-ui-fg-subtle txt-small", children: item.product_title })
508
+ ] })
509
+ ] }),
510
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-1 justify-between", children: [
511
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-grow items-center gap-2", children: [
512
+ /* @__PURE__ */ jsx3(
513
+ Form.Field,
514
+ {
515
+ control: form.control,
516
+ name: `items.${index}.quantity`,
517
+ render: ({ field }) => {
518
+ return /* @__PURE__ */ jsxs(Form.Item, { children: [
519
+ /* @__PURE__ */ jsx3(Form.Control, { children: /* @__PURE__ */ jsx3(
520
+ Input,
521
+ {
522
+ className: "bg-ui-bg-base txt-small w-[67px] rounded-lg",
523
+ min: 1,
524
+ max: item.quantity,
525
+ type: "number",
526
+ ...field,
527
+ onChange: (e) => {
528
+ const val = e.target.value;
529
+ const payload = val === "" ? null : Number(val);
530
+ field.onChange(payload);
531
+ if (payload) {
532
+ onUpdate({ quantity: payload });
533
+ }
534
+ }
535
+ }
536
+ ) }),
537
+ /* @__PURE__ */ jsx3(Form.ErrorMessage, {})
538
+ ] });
539
+ }
540
+ }
541
+ ),
542
+ /* @__PURE__ */ jsx3(Text, { className: "txt-small text-ui-fg-subtle", children: t("fields.qty") })
543
+ ] }),
544
+ /* @__PURE__ */ jsx3("div", { className: "text-ui-fg-subtle txt-small mr-2 flex flex-shrink-0", children: /* @__PURE__ */ jsx3(
545
+ MoneyAmountCell,
546
+ {
547
+ currencyCode,
548
+ amount: previewItem.return_requested_total
549
+ }
550
+ ) }),
551
+ /* @__PURE__ */ jsx3(
552
+ ActionMenu,
553
+ {
554
+ groups: [
555
+ {
556
+ actions: [
557
+ !showReturnReason && {
558
+ label: t("actions.addReason"),
559
+ onClick: () => form.setValue(`items.${index}.reason_id`, ""),
560
+ icon: /* @__PURE__ */ jsx3(ChatBubble, {})
561
+ },
562
+ !showNote && {
563
+ label: t("actions.addNote"),
564
+ onClick: () => form.setValue(`items.${index}.note`, ""),
565
+ icon: /* @__PURE__ */ jsx3(DocumentText, {})
566
+ },
567
+ {
568
+ label: t("actions.remove"),
569
+ onClick: onRemove,
570
+ icon: /* @__PURE__ */ jsx3(XCircle, {})
571
+ }
572
+ ].filter(Boolean)
573
+ }
574
+ ]
575
+ }
576
+ )
577
+ ] })
578
+ ] }),
579
+ /* @__PURE__ */ jsxs(Fragment, { children: [
580
+ showReturnReason && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-2 p-3 md:grid-cols-2", children: [
581
+ /* @__PURE__ */ jsxs("div", { children: [
582
+ /* @__PURE__ */ jsx3(Form.Label, { children: t("orders.returns.reason") }),
583
+ /* @__PURE__ */ jsx3(Form.Hint, { className: "!mt-1", children: t("orders.returns.reasonHint") })
584
+ ] }),
585
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
586
+ /* @__PURE__ */ jsx3("div", { className: "flex-grow", children: /* @__PURE__ */ jsx3(
587
+ Form.Field,
588
+ {
589
+ control: form.control,
590
+ name: `items.${index}.reason_id`,
591
+ render: ({ field: { ref, value, onChange, ...field } }) => {
592
+ return /* @__PURE__ */ jsxs(Form.Item, { children: [
593
+ /* @__PURE__ */ jsx3(Form.Control, { children: /* @__PURE__ */ jsx3(
594
+ Combobox,
595
+ {
596
+ className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover",
597
+ value,
598
+ onChange: (v) => {
599
+ onUpdate({ reason_id: v });
600
+ onChange(v);
601
+ },
602
+ ...field,
603
+ options: return_reasons.map((reason) => ({
604
+ label: reason.label,
605
+ value: reason.id
606
+ }))
607
+ }
608
+ ) }),
609
+ /* @__PURE__ */ jsx3(Form.ErrorMessage, {})
610
+ ] });
611
+ }
612
+ }
613
+ ) }),
614
+ /* @__PURE__ */ jsx3(
615
+ IconButton,
616
+ {
617
+ type: "button",
618
+ className: "flex-shrink",
619
+ variant: "transparent",
620
+ onClick: () => {
621
+ onUpdate({ reason_id: null });
622
+ form.setValue(`items.${index}.reason_id`, null);
623
+ },
624
+ children: /* @__PURE__ */ jsx3(XMark, { className: "text-ui-fg-muted" })
625
+ }
626
+ )
627
+ ] })
628
+ ] }),
629
+ showNote && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-2 p-3 md:grid-cols-2", children: [
630
+ /* @__PURE__ */ jsxs("div", { children: [
631
+ /* @__PURE__ */ jsx3(Form.Label, { children: t("orders.returns.note") }),
632
+ /* @__PURE__ */ jsx3(Form.Hint, { className: "!mt-1", children: t("orders.returns.noteHint") })
633
+ ] }),
634
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
635
+ /* @__PURE__ */ jsx3("div", { className: "flex-grow", children: /* @__PURE__ */ jsx3(
636
+ Form.Field,
637
+ {
638
+ control: form.control,
639
+ name: `items.${index}.note`,
640
+ render: ({ field: { ref, onChange, ...field } }) => {
641
+ return /* @__PURE__ */ jsxs(Form.Item, { children: [
642
+ /* @__PURE__ */ jsx3(Form.Control, { children: /* @__PURE__ */ jsx3(
643
+ Input,
644
+ {
645
+ onChange,
646
+ ...field,
647
+ onBlur: () => onUpdate({ internal_note: field.value }),
648
+ className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover"
649
+ }
650
+ ) }),
651
+ /* @__PURE__ */ jsx3(Form.ErrorMessage, {})
652
+ ] });
653
+ }
654
+ }
655
+ ) }),
656
+ /* @__PURE__ */ jsx3(
657
+ IconButton,
658
+ {
659
+ type: "button",
660
+ className: "flex-shrink",
661
+ variant: "transparent",
662
+ onClick: () => {
663
+ form.setValue(`items.${index}.note`, {
664
+ shouldDirty: true,
665
+ shouldTouch: true
666
+ });
667
+ onUpdate({ internal_note: null });
668
+ },
669
+ children: /* @__PURE__ */ jsx3(XMark, { className: "text-ui-fg-muted" })
670
+ }
671
+ )
672
+ ] })
673
+ ] })
674
+ ] })
675
+ ] });
676
+ }
677
+
678
+ // src/routes/orders/order-create-return/components/return-create-form/schema.ts
679
+ import { z } from "zod";
680
+ var ReturnCreateSchema = z.object({
681
+ items: z.array(
682
+ z.object({
683
+ item_id: z.string(),
684
+ quantity: z.number(),
685
+ reason_id: z.string().optional().nullable(),
686
+ note: z.string().optional().nullable()
687
+ })
688
+ ),
689
+ location_id: z.string().optional(),
690
+ option_id: z.string(),
691
+ send_notification: z.boolean().optional(),
692
+ // TODO: implement this
693
+ receive_now: z.boolean().optional()
694
+ });
695
+
696
+ // src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx
697
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
698
+ var selectedItems = [];
699
+ var ReturnCreateForm = ({
700
+ order,
701
+ preview,
702
+ activeReturn
703
+ }) => {
704
+ const { t } = useTranslation5();
705
+ const { handleSuccess } = useRouteModal();
706
+ const itemsMap = useMemo3(
707
+ () => new Map((order.items || []).map((i) => [i.id, i])),
708
+ [order.items]
709
+ );
710
+ const previewItems = useMemo3(
711
+ () => preview.items.filter(
712
+ (i) => !!i.actions?.find((a) => a.return_id === activeReturn.id)
713
+ ),
714
+ [preview.items]
715
+ );
716
+ const previewItemsMap = useMemo3(
717
+ () => new Map(previewItems.map((i) => [i.id, i])),
718
+ [previewItems]
719
+ );
720
+ const { setIsOpen } = useStackedModal();
721
+ const [isShippingPriceEdit, setIsShippingPriceEdit] = useState2(false);
722
+ const [customShippingAmount, setCustomShippingAmount] = useState2({
723
+ value: "0",
724
+ float: 0
725
+ });
726
+ const [inventoryMap, setInventoryMap] = useState2({});
727
+ const { stock_locations = [] } = useStockLocations({ limit: 999 });
728
+ const { shipping_options = [] } = useShippingOptions({
729
+ limit: 999,
730
+ fields: "*prices,+service_zone.fulfillment_set.location.id"
731
+ /**
732
+ * TODO: this should accept filter for location_id
733
+ */
734
+ });
735
+ const { mutateAsync: confirmReturnRequest, isPending: isConfirming } = useConfirmReturnRequest(activeReturn.id, order.id);
736
+ const { mutateAsync: cancelReturnRequest, isPending: isCanceling } = useCancelReturnRequest(activeReturn.id, order.id);
737
+ const { mutateAsync: updateReturnRequest, isPending: isUpdating } = useUpdateReturn(activeReturn.id, order.id);
738
+ const { mutateAsync: addReturnShipping, isPending: isAddingReturnShipping } = useAddReturnShipping(activeReturn.id, order.id);
739
+ const {
740
+ mutateAsync: updateReturnShipping,
741
+ isPending: isUpdatingReturnShipping
742
+ } = useUpdateReturnShipping(activeReturn.id, order.id);
743
+ const {
744
+ mutateAsync: deleteReturnShipping,
745
+ isPending: isDeletingReturnShipping
746
+ } = useDeleteReturnShipping(activeReturn.id, order.id);
747
+ const { mutateAsync: addReturnItem, isPending: isAddingReturnItem } = useAddReturnItem(activeReturn.id, order.id);
748
+ const { mutateAsync: removeReturnItem, isPending: isRemovingReturnItem } = useRemoveReturnItem(activeReturn.id, order.id);
749
+ const { mutateAsync: updateReturnItem, isPending: isUpdatingReturnItem } = useUpdateReturnItem(activeReturn.id, order.id);
750
+ const isRequestLoading = isConfirming || isCanceling || isAddingReturnShipping || isUpdatingReturnShipping || isDeletingReturnShipping || isAddingReturnItem || isRemovingReturnItem || isUpdatingReturnItem || isUpdating;
751
+ const form = useForm({
752
+ /**
753
+ * TODO: reason selection once Return reason settings are added
754
+ */
755
+ defaultValues: () => {
756
+ const method = preview.shipping_methods.find(
757
+ (s) => !!s.actions?.find((a) => a.action === "SHIPPING_ADD")
758
+ );
759
+ return Promise.resolve({
760
+ items: previewItems.map((i) => ({
761
+ item_id: i.id,
762
+ quantity: i.detail.return_requested_quantity,
763
+ note: i.actions?.find((a) => a.action === "RETURN_ITEM")?.internal_note,
764
+ reason_id: i.actions?.find((a) => a.action === "RETURN_ITEM")?.details?.reason_id
765
+ })),
766
+ option_id: method ? method.shipping_option_id : "",
767
+ location_id: activeReturn?.location_id,
768
+ send_notification: false
769
+ });
770
+ },
771
+ resolver: zodResolver(ReturnCreateSchema)
772
+ });
773
+ const {
774
+ fields: items,
775
+ append,
776
+ remove,
777
+ update
778
+ } = useFieldArray({
779
+ name: "items",
780
+ control: form.control
781
+ });
782
+ useEffect(() => {
783
+ const existingItemsMap = {};
784
+ previewItems.forEach((i) => {
785
+ const ind = items.findIndex((field) => field.item_id === i.id);
786
+ if (!i.detail.return_requested_quantity) {
787
+ return;
788
+ }
789
+ existingItemsMap[i.id] = true;
790
+ if (ind > -1) {
791
+ if (items[ind].quantity !== i.detail.return_requested_quantity) {
792
+ const returnItemAction = i.actions?.find(
793
+ (a) => a.action === "RETURN_ITEM"
794
+ );
795
+ update(ind, {
796
+ ...items[ind],
797
+ quantity: i.detail.return_requested_quantity,
798
+ note: returnItemAction?.internal_note,
799
+ reason_id: returnItemAction?.details?.reason_id
800
+ });
801
+ }
802
+ } else {
803
+ append({ item_id: i.id, quantity: i.detail.return_requested_quantity });
804
+ }
805
+ });
806
+ items.forEach((i, ind) => {
807
+ if (!(i.item_id in existingItemsMap)) {
808
+ remove(ind);
809
+ }
810
+ });
811
+ }, [previewItems]);
812
+ useEffect(() => {
813
+ const method = preview.shipping_methods?.find(
814
+ (s) => !!s.actions?.find((a) => a.action === "SHIPPING_ADD")
815
+ );
816
+ if (method) {
817
+ form.setValue("option_id", method.shipping_option_id);
818
+ } else {
819
+ form.setValue("option_id", "");
820
+ }
821
+ }, [preview.shipping_methods]);
822
+ const showPlaceholder = !items.length;
823
+ const locationId = form.watch("location_id");
824
+ const shippingOptionId = form.watch("option_id");
825
+ const prompt = usePrompt();
826
+ const handleSubmit = form.handleSubmit(async (data) => {
827
+ try {
828
+ const res = await prompt({
829
+ title: t("general.areYouSure"),
830
+ description: t("orders.returns.confirmText"),
831
+ confirmText: t("actions.continue"),
832
+ cancelText: t("actions.cancel"),
833
+ variant: "confirmation"
834
+ });
835
+ if (!res) {
836
+ return;
837
+ }
838
+ await confirmReturnRequest({ no_notification: !data.send_notification });
839
+ handleSuccess();
840
+ } catch (e) {
841
+ toast.error(t("general.error"), {
842
+ description: e.message,
843
+ dismissLabel: t("actions.close")
844
+ });
845
+ }
846
+ });
847
+ const onItemsSelected = () => {
848
+ addReturnItem({
849
+ items: selectedItems.map((id) => ({
850
+ id,
851
+ quantity: 1
852
+ }))
853
+ });
854
+ setIsOpen("items", false);
855
+ };
856
+ const onLocationChange = async (selectedLocationId) => {
857
+ await updateReturnRequest({ location_id: selectedLocationId });
858
+ };
859
+ const onShippingOptionChange = async (selectedOptionId) => {
860
+ const promises = preview.shipping_methods.map((s) => s.actions?.find((a) => a.action === "SHIPPING_ADD")?.id).filter(Boolean).map(deleteReturnShipping);
861
+ await Promise.all(promises);
862
+ if (selectedOptionId) {
863
+ await addReturnShipping({ shipping_option_id: selectedOptionId });
864
+ }
865
+ };
866
+ useEffect(() => {
867
+ if (isShippingPriceEdit) {
868
+ document.getElementById("js-shipping-input").focus();
869
+ }
870
+ }, [isShippingPriceEdit]);
871
+ useEffect(() => {
872
+ form.setValue("location_id", activeReturn?.location_id || "");
873
+ }, [activeReturn]);
874
+ const showLevelsWarning = useMemo3(() => {
875
+ if (!locationId) {
876
+ return false;
877
+ }
878
+ const allItemsHaveLocation = items.map((_i) => {
879
+ const item = itemsMap.get(_i.item_id);
880
+ if (!item?.variant_id) {
881
+ return true;
882
+ }
883
+ if (!item.variant?.manage_inventory) {
884
+ return true;
885
+ }
886
+ return inventoryMap[item.variant_id]?.find(
887
+ (l) => l.location_id === locationId
888
+ );
889
+ }).every(Boolean);
890
+ return !allItemsHaveLocation;
891
+ }, [items, inventoryMap, locationId]);
892
+ useEffect(() => {
893
+ const getInventoryMap = async () => {
894
+ const ret = {};
895
+ if (!items.length) {
896
+ return ret;
897
+ }
898
+ ;
899
+ (await Promise.all(
900
+ items.map(async (_i) => {
901
+ const item = itemsMap.get(_i.item_id);
902
+ if (!item.variant_id) {
903
+ return void 0;
904
+ }
905
+ return await sdk.admin.product.retrieveVariant(
906
+ item.product_id,
907
+ item.variant_id,
908
+ { fields: "*inventory,*inventory.location_levels" }
909
+ );
910
+ })
911
+ )).filter((it) => it?.variant).forEach((item) => {
912
+ const { variant } = item;
913
+ const levels = variant.inventory[0]?.location_levels;
914
+ if (!levels) {
915
+ return;
916
+ }
917
+ ret[variant.id] = levels;
918
+ });
919
+ return ret;
920
+ };
921
+ getInventoryMap().then((map) => {
922
+ setInventoryMap(map);
923
+ });
924
+ }, [items]);
925
+ const returnTotal = preview.return_requested_total;
926
+ const shippingTotal = useMemo3(() => {
927
+ const method = preview.shipping_methods.find(
928
+ (sm) => !!sm.actions?.find((a) => a.action === "SHIPPING_ADD")
929
+ );
930
+ return method?.total || 0;
931
+ }, [preview.shipping_methods]);
932
+ const estimatedDifference = preview.summary.pending_difference - previewItems.reduce((acc, item) => {
933
+ return acc + item.total;
934
+ }, 0);
935
+ return /* @__PURE__ */ jsx4(
936
+ RouteFocusModal.Form,
937
+ {
938
+ form,
939
+ onClose: (isSubmitSuccessful) => {
940
+ if (!isSubmitSuccessful) {
941
+ cancelReturnRequest();
942
+ }
943
+ },
944
+ children: /* @__PURE__ */ jsxs2(KeyboundForm, { onSubmit: handleSubmit, className: "flex h-full flex-col", children: [
945
+ /* @__PURE__ */ jsx4(RouteFocusModal.Header, {}),
946
+ /* @__PURE__ */ jsx4(RouteFocusModal.Body, { className: "flex size-full justify-center overflow-y-auto", children: /* @__PURE__ */ jsxs2("div", { className: "mt-16 w-[720px] max-w-[100%] px-4 md:p-0", children: [
947
+ /* @__PURE__ */ jsx4(Heading, { level: "h1", children: t("orders.returns.create") }),
948
+ /* @__PURE__ */ jsxs2("div", { className: "mt-8 flex items-center justify-between", children: [
949
+ /* @__PURE__ */ jsx4(Heading, { level: "h2", children: t("orders.returns.inbound") }),
950
+ /* @__PURE__ */ jsxs2(StackedFocusModal, { id: "items", children: [
951
+ /* @__PURE__ */ jsx4(StackedFocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx4("a", { className: "focus-visible:shadow-borders-focus transition-fg txt-compact-small-plus cursor-pointer text-blue-500 outline-none hover:text-blue-400", children: t("actions.addItems") }) }),
952
+ /* @__PURE__ */ jsxs2(StackedFocusModal.Content, { children: [
953
+ /* @__PURE__ */ jsx4(StackedFocusModal.Header, {}),
954
+ /* @__PURE__ */ jsx4(
955
+ AddReturnItemsTable,
956
+ {
957
+ items: order.items,
958
+ selectedItems: items.map((i) => i.item_id),
959
+ currencyCode: order.currency_code,
960
+ onSelectionChange: (s) => selectedItems = s
961
+ }
962
+ ),
963
+ /* @__PURE__ */ jsx4(StackedFocusModal.Footer, { children: /* @__PURE__ */ jsx4("div", { className: "flex w-full items-center justify-end gap-x-4", children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-end gap-x-2", children: [
964
+ /* @__PURE__ */ jsx4(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx4(
965
+ Button,
966
+ {
967
+ type: "button",
968
+ variant: "secondary",
969
+ size: "small",
970
+ children: t("actions.cancel")
971
+ }
972
+ ) }),
973
+ /* @__PURE__ */ jsx4(
974
+ Button,
975
+ {
976
+ type: "submit",
977
+ variant: "primary",
978
+ size: "small",
979
+ role: "button",
980
+ onClick: () => onItemsSelected(),
981
+ children: t("actions.save")
982
+ },
983
+ "submit-button"
984
+ )
985
+ ] }) }) })
986
+ ] })
987
+ ] })
988
+ ] }),
989
+ showPlaceholder && /* @__PURE__ */ jsx4(
990
+ "div",
991
+ {
992
+ style: {
993
+ background: "repeating-linear-gradient(-45deg, rgb(212, 212, 216, 0.15), rgb(212, 212, 216,.15) 10px, transparent 10px, transparent 20px)"
994
+ },
995
+ className: "bg-ui-bg-field mt-4 block h-[56px] w-full rounded-lg border border-dashed"
996
+ }
997
+ ),
998
+ items.filter((item) => !!previewItemsMap.get(item.item_id)).map((item, index) => /* @__PURE__ */ jsx4(
999
+ ReturnItem,
1000
+ {
1001
+ item: itemsMap.get(item.item_id),
1002
+ previewItem: previewItemsMap.get(item.item_id),
1003
+ currencyCode: order.currency_code,
1004
+ form,
1005
+ onRemove: () => {
1006
+ const actionId = previewItems.find((i) => i.id === item.item_id)?.actions?.find((a) => a.action === "RETURN_ITEM")?.id;
1007
+ if (actionId) {
1008
+ removeReturnItem(actionId);
1009
+ }
1010
+ },
1011
+ onUpdate: (payload) => {
1012
+ const action = previewItems.find((i) => i.id === item.item_id)?.actions?.find((a) => a.action === "RETURN_ITEM");
1013
+ if (action) {
1014
+ updateReturnItem(
1015
+ { ...payload, actionId: action.id },
1016
+ {
1017
+ onError: (error) => {
1018
+ if (action.details?.quantity && payload.quantity) {
1019
+ form.setValue(
1020
+ `items.${index}.quantity`,
1021
+ action.details?.quantity
1022
+ );
1023
+ }
1024
+ toast.error(error.message);
1025
+ }
1026
+ }
1027
+ );
1028
+ }
1029
+ },
1030
+ index
1031
+ },
1032
+ item.id
1033
+ )),
1034
+ !showPlaceholder && /* @__PURE__ */ jsxs2("div", { className: "mt-8 flex flex-col gap-y-4", children: [
1035
+ /* @__PURE__ */ jsxs2("div", { className: "grid grid-cols-1 gap-2 md:grid-cols-2", children: [
1036
+ /* @__PURE__ */ jsxs2("div", { children: [
1037
+ /* @__PURE__ */ jsx4(Form.Label, { children: t("orders.returns.location") }),
1038
+ /* @__PURE__ */ jsx4(Form.Hint, { className: "!mt-1", children: t("orders.returns.locationHint") })
1039
+ ] }),
1040
+ /* @__PURE__ */ jsx4(
1041
+ Form.Field,
1042
+ {
1043
+ control: form.control,
1044
+ name: "location_id",
1045
+ render: ({ field: { value, onChange, ...field } }) => {
1046
+ return /* @__PURE__ */ jsx4(Form.Item, { children: /* @__PURE__ */ jsx4(Form.Control, { children: /* @__PURE__ */ jsx4(
1047
+ Combobox,
1048
+ {
1049
+ value,
1050
+ onChange: (v) => {
1051
+ onChange(v);
1052
+ onLocationChange(v);
1053
+ },
1054
+ ...field,
1055
+ options: (stock_locations ?? []).map(
1056
+ (stockLocation) => ({
1057
+ label: stockLocation.name,
1058
+ value: stockLocation.id
1059
+ })
1060
+ )
1061
+ }
1062
+ ) }) });
1063
+ }
1064
+ }
1065
+ )
1066
+ ] }),
1067
+ /* @__PURE__ */ jsxs2("div", { className: "grid grid-cols-1 gap-2 md:grid-cols-2", children: [
1068
+ /* @__PURE__ */ jsxs2("div", { children: [
1069
+ /* @__PURE__ */ jsxs2(Form.Label, { children: [
1070
+ t("orders.returns.inboundShipping"),
1071
+ /* @__PURE__ */ jsxs2(
1072
+ Text2,
1073
+ {
1074
+ size: "small",
1075
+ leading: "compact",
1076
+ className: "text-ui-fg-muted ml-1 inline",
1077
+ children: [
1078
+ "(",
1079
+ t("fields.optional"),
1080
+ ")"
1081
+ ]
1082
+ }
1083
+ )
1084
+ ] }),
1085
+ /* @__PURE__ */ jsx4(Form.Hint, { className: "!mt-1", children: t("orders.returns.inboundShippingHint") })
1086
+ ] }),
1087
+ /* @__PURE__ */ jsx4(
1088
+ Form.Field,
1089
+ {
1090
+ control: form.control,
1091
+ name: "option_id",
1092
+ render: ({ field: { value, onChange, ...field } }) => {
1093
+ return /* @__PURE__ */ jsx4(Form.Item, { children: /* @__PURE__ */ jsx4(Form.Control, { children: /* @__PURE__ */ jsx4(
1094
+ Combobox,
1095
+ {
1096
+ allowClear: true,
1097
+ value,
1098
+ onChange: (v) => {
1099
+ onChange(v);
1100
+ onShippingOptionChange(v);
1101
+ },
1102
+ ...field,
1103
+ options: (shipping_options ?? []).filter(
1104
+ (so) => (locationId ? so.service_zone.fulfillment_set.location.id === locationId : true) && !!so.rules.find(
1105
+ (r) => r.attribute === "is_return" && r.value === "true"
1106
+ )
1107
+ ).map((so) => ({
1108
+ label: so.name,
1109
+ value: so.id
1110
+ })),
1111
+ disabled: !locationId,
1112
+ noResultsPlaceholder: /* @__PURE__ */ jsx4(ReturnShippingPlaceholder, {})
1113
+ }
1114
+ ) }) });
1115
+ }
1116
+ }
1117
+ )
1118
+ ] })
1119
+ ] }),
1120
+ showLevelsWarning && /* @__PURE__ */ jsxs2(Alert, { variant: "warning", dismissible: true, className: "mt-4 p-5", children: [
1121
+ /* @__PURE__ */ jsx4("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: t("orders.returns.noInventoryLevel") }),
1122
+ /* @__PURE__ */ jsx4(Text2, { className: "text-ui-fg-subtle txt-small leading-normal", children: t("orders.returns.noInventoryLevelDesc") })
1123
+ ] }),
1124
+ /* @__PURE__ */ jsxs2("div", { className: "mt-8 border-y border-dotted py-4", children: [
1125
+ /* @__PURE__ */ jsxs2("div", { className: "mb-2 flex items-center justify-between", children: [
1126
+ /* @__PURE__ */ jsx4("span", { className: "txt-small text-ui-fg-subtle", children: t("orders.returns.returnTotal") }),
1127
+ /* @__PURE__ */ jsx4("span", { className: "txt-small text-ui-fg-subtle", children: getStylizedAmount(
1128
+ returnTotal ? -1 * returnTotal : returnTotal,
1129
+ order.currency_code
1130
+ ) })
1131
+ ] }),
1132
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between", children: [
1133
+ /* @__PURE__ */ jsx4("span", { className: "txt-small text-ui-fg-subtle", children: t("orders.returns.inboundShipping") }),
1134
+ /* @__PURE__ */ jsxs2("span", { className: "txt-small text-ui-fg-subtle flex items-center", children: [
1135
+ !isShippingPriceEdit && /* @__PURE__ */ jsx4(
1136
+ IconButton2,
1137
+ {
1138
+ onClick: () => setIsShippingPriceEdit(true),
1139
+ variant: "transparent",
1140
+ className: "text-ui-fg-muted",
1141
+ disabled: showPlaceholder || !shippingOptionId,
1142
+ children: /* @__PURE__ */ jsx4(PencilSquare, {})
1143
+ }
1144
+ ),
1145
+ isShippingPriceEdit ? /* @__PURE__ */ jsx4(
1146
+ CurrencyInput,
1147
+ {
1148
+ id: "js-shipping-input",
1149
+ onBlur: () => {
1150
+ let actionId;
1151
+ preview.shipping_methods.forEach((s) => {
1152
+ if (s.actions) {
1153
+ for (const a of s.actions) {
1154
+ if (a.action === "SHIPPING_ADD") {
1155
+ actionId = a.id;
1156
+ }
1157
+ }
1158
+ }
1159
+ });
1160
+ if (actionId) {
1161
+ updateReturnShipping({
1162
+ actionId,
1163
+ custom_amount: customShippingAmount.float
1164
+ });
1165
+ }
1166
+ setIsShippingPriceEdit(false);
1167
+ },
1168
+ symbol: currencies[order.currency_code.toUpperCase()].symbol_native,
1169
+ code: order.currency_code,
1170
+ onValueChange: (value, name, values) => setCustomShippingAmount({
1171
+ value: values?.value ?? "",
1172
+ float: values?.float ?? null
1173
+ }),
1174
+ value: customShippingAmount.value,
1175
+ disabled: showPlaceholder
1176
+ }
1177
+ ) : getStylizedAmount(shippingTotal, order.currency_code)
1178
+ ] })
1179
+ ] }),
1180
+ /* @__PURE__ */ jsxs2("div", { className: "mt-4 flex items-center justify-between border-t border-dotted pt-4", children: [
1181
+ /* @__PURE__ */ jsx4("span", { className: "txt-small font-medium", children: t("orders.returns.estDifference") }),
1182
+ /* @__PURE__ */ jsx4("span", { className: "txt-small font-medium", children: getStylizedAmount(estimatedDifference, order.currency_code) })
1183
+ ] })
1184
+ ] }),
1185
+ /* @__PURE__ */ jsx4("div", { className: "bg-ui-bg-field mt-8 rounded-lg border py-2 pl-2 pr-4", children: /* @__PURE__ */ jsx4(
1186
+ Form.Field,
1187
+ {
1188
+ control: form.control,
1189
+ name: "send_notification",
1190
+ render: ({ field: { onChange, value, ...field } }) => {
1191
+ return /* @__PURE__ */ jsxs2(Form.Item, { children: [
1192
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center", children: [
1193
+ /* @__PURE__ */ jsx4(Form.Control, { className: "mr-4 self-start", children: /* @__PURE__ */ jsx4(
1194
+ Switch,
1195
+ {
1196
+ dir: "ltr",
1197
+ className: "mt-[2px] rtl:rotate-180",
1198
+ checked: !!value,
1199
+ onCheckedChange: onChange,
1200
+ ...field
1201
+ }
1202
+ ) }),
1203
+ /* @__PURE__ */ jsxs2("div", { className: "block", children: [
1204
+ /* @__PURE__ */ jsx4(Form.Label, { children: t("orders.returns.sendNotification") }),
1205
+ /* @__PURE__ */ jsx4(Form.Hint, { className: "!mt-1", children: t("orders.returns.sendNotificationHint") })
1206
+ ] })
1207
+ ] }),
1208
+ /* @__PURE__ */ jsx4(Form.ErrorMessage, {})
1209
+ ] });
1210
+ }
1211
+ }
1212
+ ) }),
1213
+ /* @__PURE__ */ jsx4("div", { className: "p-8" })
1214
+ ] }) }),
1215
+ /* @__PURE__ */ jsx4(RouteFocusModal.Footer, { children: /* @__PURE__ */ jsx4("div", { className: "flex w-full items-center justify-end gap-x-4", children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-end gap-x-2", children: [
1216
+ /* @__PURE__ */ jsx4(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx4(Button, { type: "button", variant: "secondary", size: "small", children: t("orders.returns.cancel.title") }) }),
1217
+ /* @__PURE__ */ jsx4(
1218
+ Button,
1219
+ {
1220
+ type: "submit",
1221
+ variant: "primary",
1222
+ size: "small",
1223
+ isLoading: isRequestLoading,
1224
+ children: t("orders.returns.confirm")
1225
+ },
1226
+ "submit-button"
1227
+ )
1228
+ ] }) }) })
1229
+ ] })
1230
+ }
1231
+ );
1232
+ };
1233
+
1234
+ // src/routes/orders/order-create-return/return-create.tsx
1235
+ import { jsx as jsx5 } from "react/jsx-runtime";
1236
+ var IS_REQUEST_RUNNING = false;
1237
+ var ReturnCreate = () => {
1238
+ const { id } = useParams();
1239
+ const navigate = useNavigate();
1240
+ const { t } = useTranslation6();
1241
+ const { order } = useOrder(id, {
1242
+ fields: DEFAULT_FIELDS
1243
+ });
1244
+ const { order: preview } = useOrderPreview(id, void 0, {});
1245
+ const [activeReturnId, setActiveReturnId] = useState3();
1246
+ const { mutateAsync: initiateReturn } = useInitiateReturn(order.id);
1247
+ const { return: activeReturn } = useReturn(activeReturnId, void 0, {
1248
+ enabled: !!activeReturnId
1249
+ });
1250
+ useEffect2(() => {
1251
+ async function run() {
1252
+ if (IS_REQUEST_RUNNING || !preview) {
1253
+ return;
1254
+ }
1255
+ if (preview.order_change) {
1256
+ if (preview.order_change.change_type === "return_request") {
1257
+ setActiveReturnId(preview.order_change.return_id);
1258
+ } else {
1259
+ navigate(`/orders/${order.id}`, { replace: true });
1260
+ toast2.error(t("orders.returns.activeChangeError"));
1261
+ }
1262
+ return;
1263
+ }
1264
+ IS_REQUEST_RUNNING = true;
1265
+ try {
1266
+ const orderReturn = await initiateReturn({ order_id: order.id });
1267
+ setActiveReturnId(orderReturn.id);
1268
+ } catch (e) {
1269
+ navigate(`/orders/${order.id}`, { replace: true });
1270
+ toast2.error(e.message);
1271
+ } finally {
1272
+ IS_REQUEST_RUNNING = false;
1273
+ }
1274
+ }
1275
+ run();
1276
+ }, [preview]);
1277
+ return /* @__PURE__ */ jsx5(RouteFocusModal, { children: activeReturn && preview && order && /* @__PURE__ */ jsx5(
1278
+ ReturnCreateForm,
1279
+ {
1280
+ order,
1281
+ activeReturn,
1282
+ preview
1283
+ }
1284
+ ) });
1285
+ };
1286
+ export {
1287
+ ReturnCreate as Component
1288
+ };