@mercurjs/admin 2.2.0-canary.9 → 2.2.0-rc.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 (430) hide show
  1. package/dist/{add-campaign-promotions-XANY2FIV.js → add-campaign-promotions-RH5L6VMH.js} +15 -15
  2. package/dist/{adjust-inventory-DJRDNU2V.js → adjust-inventory-P2M7KZ77.js} +33 -33
  3. package/dist/{api-key-management-create-UD5V7TOU.js → api-key-management-create-KDKSGJ4C.js} +5 -5
  4. package/dist/{api-key-management-detail-XJVWUU2C.js → api-key-management-detail-2RZ6NOYH.js} +37 -38
  5. package/dist/{api-key-management-edit-4TLKJSAE.js → api-key-management-edit-NOGBLKBT.js} +5 -5
  6. package/dist/{api-key-management-list-SZUSD6UI.js → api-key-management-list-CGHUURWX.js} +11 -11
  7. package/dist/{api-key-management-sales-channels-TK6XEGF3.js → api-key-management-sales-channels-VJMUPYV3.js} +10 -11
  8. package/dist/{attribute-create-2COL3PJX.js → attribute-create-KR4DSDH2.js} +58 -66
  9. package/dist/{attribute-create-possible-value-EXVHC272.js → attribute-create-possible-value-QFXKXZM4.js} +2 -2
  10. package/dist/{attribute-detail-7SK3MWGQ.js → attribute-detail-6FMX7IDW.js} +64 -51
  11. package/dist/{attribute-edit-LUY66TG3.js → attribute-edit-WXO5FGR6.js} +7 -7
  12. package/dist/{attribute-edit-possible-value-IOS3625C.js → attribute-edit-possible-value-RO7BY3NC.js} +5 -5
  13. package/dist/{attribute-edit-ranking-7AAAYEC7.js → attribute-edit-ranking-YGR3KCSC.js} +3 -3
  14. package/dist/attribute-list-PJXWYS4C.js +61 -0
  15. package/dist/breadcrumb-GHBR74WM.js +27 -0
  16. package/dist/breadcrumb-OBHTESQD.js +26 -0
  17. package/dist/{campaign-budget-edit-WKSYXTBX.js → campaign-budget-edit-QXAXRI6B.js} +3 -3
  18. package/dist/{campaign-configuration-ZTK46EB5.js → campaign-configuration-A3E6G2VQ.js} +3 -3
  19. package/dist/{campaign-create-7BELREFT.js → campaign-create-TZH66JVU.js} +7 -7
  20. package/dist/{campaign-detail-XL3QCW5Y.js → campaign-detail-3PNOOUGP.js} +50 -46
  21. package/dist/{campaign-edit-ZGLDY4X4.js → campaign-edit-6CIGS4ZU.js} +25 -9
  22. package/dist/{campaign-list-NQGNOFVZ.js → campaign-list-TNJDWTM5.js} +9 -9
  23. package/dist/{categories-metadata-C6HVQRH2.js → categories-metadata-AIT33J5U.js} +34 -34
  24. package/dist/{category-create-GMCJABRW.js → category-create-NTSIOKLK.js} +9 -6
  25. package/dist/category-detail-3WUCMDWO.js +113 -0
  26. package/dist/{category-edit-GLE4NTFG.js → category-edit-4PGWERPJ.js} +31 -13
  27. package/dist/category-icon-edit-C2VAH5JA.js +117 -0
  28. package/dist/{category-list-SNVOQ64L.js → category-list-D4J4G6HW.js} +14 -11
  29. package/dist/category-media-E5UUDN3I.js +655 -0
  30. package/dist/category-organize-T45BC4HL.js +129 -0
  31. package/dist/{category-products-EWBBAXAH.js → category-products-TTQGSVUC.js} +49 -48
  32. package/dist/chunk-2KERYQNF.js +525 -0
  33. package/dist/{chunk-WQFFCK3R.js → chunk-2V74T2WI.js} +1 -1
  34. package/dist/{chunk-26UTIAAZ.js → chunk-32URSQ4F.js} +1 -1
  35. package/dist/{chunk-VT5E7OMM.js → chunk-3F4Z4BNA.js} +34 -16
  36. package/dist/{chunk-BSU6VOKG.js → chunk-3FKB6UTO.js} +81 -64
  37. package/dist/chunk-3KS7PC2Z.js +1284 -0
  38. package/dist/{chunk-FDD7TANX.js → chunk-3LDOWS4A.js} +8 -7
  39. package/dist/chunk-3LGGCLSO.js +185 -0
  40. package/dist/{chunk-X4EKVL5F.js → chunk-3WCK2FT4.js} +291 -76
  41. package/dist/{chunk-VKOE5J66.js → chunk-3XOE4NV5.js} +11 -2
  42. package/dist/{chunk-W2QNDZTH.js → chunk-4DJL3XN7.js} +25 -13
  43. package/dist/{chunk-PASEZJC7.js → chunk-4QQ6BFWQ.js} +9 -9
  44. package/dist/{chunk-GP4J42UD.js → chunk-4TNOZ4VH.js} +3 -2
  45. package/dist/chunk-4TW5RTWO.js +281 -0
  46. package/dist/{chunk-JQV7CXEC.js → chunk-5BSSIDW6.js} +17 -2
  47. package/dist/{chunk-FB7DDNCA.js → chunk-5CHUXS7G.js} +4 -4
  48. package/dist/{chunk-SJGIQGEC.js → chunk-5EOYDQAS.js} +1 -1
  49. package/dist/{chunk-DRJAKRTI.js → chunk-5NAX6LXB.js} +7 -6
  50. package/dist/{chunk-3VTAK3S6.js → chunk-5NC3VFXY.js} +4 -4
  51. package/dist/{chunk-LYZDVZWA.js → chunk-5NSOIZFB.js} +5 -3
  52. package/dist/{chunk-D4PQL46N.js → chunk-67KYEPSA.js} +1 -1
  53. package/dist/chunk-6BAPAIQM.js +8 -0
  54. package/dist/{chunk-3JSAS7QP.js → chunk-6DDS7IRR.js} +24 -7
  55. package/dist/{chunk-VY7PT4SI.js → chunk-6R767EBC.js} +19 -16
  56. package/dist/{chunk-Y6NDT26D.js → chunk-6S5RUSUU.js} +12 -11
  57. package/dist/{chunk-AWCVVFEY.js → chunk-6TMGHMZ2.js} +39 -11
  58. package/dist/{chunk-TE4IF3MM.js → chunk-7CQD5AQ6.js} +2 -6
  59. package/dist/chunk-7IGLZARZ.js +101 -0
  60. package/dist/{chunk-634XVU3D.js → chunk-7PPT3477.js} +10 -3
  61. package/dist/{chunk-GKGLVDDV.js → chunk-A2F5MDPU.js} +1 -1
  62. package/dist/{chunk-NUC27ELX.js → chunk-AASCLZ5N.js} +5 -5
  63. package/dist/{chunk-LOIFUOOA.js → chunk-ABS7HMLY.js} +2 -2
  64. package/dist/{chunk-PRBE5CM3.js → chunk-AFYILTAC.js} +35 -3
  65. package/dist/chunk-APAT344J.js +144 -0
  66. package/dist/{chunk-57RZ7ZOK.js → chunk-APMBU7ZV.js} +5 -5
  67. package/dist/{chunk-UCX2T4BQ.js → chunk-AW5OKJQZ.js} +12 -11
  68. package/dist/{chunk-N7OVIX55.js → chunk-BBD4WOUK.js} +11 -10
  69. package/dist/{chunk-SV5YQGFE.js → chunk-BHF4TD3T.js} +16 -15
  70. package/dist/{chunk-FFNSWUDC.js → chunk-BHSY6RCN.js} +42 -14
  71. package/dist/chunk-BW7BDHZV.js +34 -0
  72. package/dist/{chunk-LYZT5REU.js → chunk-C4XKPQ6T.js} +14 -1
  73. package/dist/{chunk-N6SI4IIT.js → chunk-CARSKIPW.js} +1 -1
  74. package/dist/chunk-CGIVQ7D2.js +115 -0
  75. package/dist/chunk-CU4UVEHX.js +121 -0
  76. package/dist/{chunk-NJ7V6YWI.js → chunk-CWQKHTH6.js} +92 -131
  77. package/dist/{chunk-JSMUFZZN.js → chunk-DJD3MWED.js} +1 -1
  78. package/dist/{chunk-PMWLTPYR.js → chunk-DMZDXTS5.js} +168 -103
  79. package/dist/{chunk-QUPUWR42.js → chunk-DP6YFZHP.js} +10 -8
  80. package/dist/{chunk-I5THQVYP.js → chunk-DUVYF37J.js} +1 -1
  81. package/dist/{chunk-FXWKGNRV.js → chunk-EJY35WBK.js} +2 -2
  82. package/dist/{chunk-46M463BR.js → chunk-EWFOFSF7.js} +1 -1
  83. package/dist/{chunk-CVFX57MN.js → chunk-F57NIOVJ.js} +52 -23
  84. package/dist/{chunk-533GMKEG.js → chunk-F5NW4XBU.js} +23 -3
  85. package/dist/{chunk-HR7TFO2X.js → chunk-F6DGTW4E.js} +7 -7
  86. package/dist/{chunk-5AZCIOS4.js → chunk-F6NPDZHW.js} +2 -2
  87. package/dist/{chunk-OKDODCIP.js → chunk-FLFE6HXW.js} +1 -1
  88. package/dist/{chunk-4LXBQTFN.js → chunk-FREUYHMS.js} +1 -1
  89. package/dist/{chunk-Z5T5EPLF.js → chunk-FVG5DTS6.js} +3 -3
  90. package/dist/{chunk-453BC56K.js → chunk-G2LHEJLS.js} +4 -4
  91. package/dist/{chunk-OHOWEMHO.js → chunk-G5KNNOXX.js} +32 -26
  92. package/dist/{chunk-EHGCFAN6.js → chunk-G67PGZDM.js} +72 -30
  93. package/dist/{chunk-NQEXDLYH.js → chunk-GRFWCCUW.js} +28 -9
  94. package/dist/{chunk-PVZBDWLK.js → chunk-GRH7C3QN.js} +1 -1
  95. package/dist/{chunk-2OF7GB7J.js → chunk-GVPKRQWI.js} +77 -26
  96. package/dist/{chunk-VDKOJ5WD.js → chunk-GYRTURN7.js} +1 -1
  97. package/dist/{chunk-XJ3WC4G7.js → chunk-H3D6V3KM.js} +4 -3
  98. package/dist/chunk-HC2TEEKQ.js +283 -0
  99. package/dist/{chunk-BPCU5QJE.js → chunk-HC7FWIMY.js} +8 -7
  100. package/dist/{chunk-YFRC6GEN.js → chunk-HLL6GLZO.js} +3 -3
  101. package/dist/{chunk-TLDLOE27.js → chunk-HYDXR5K4.js} +56 -16
  102. package/dist/{chunk-X45JKZYW.js → chunk-I5FOWDOM.js} +11 -8
  103. package/dist/{chunk-OMBP3YSV.js → chunk-I5HY5Q3K.js} +19 -72
  104. package/dist/{chunk-WJJXUXSO.js → chunk-IC2PLPRP.js} +1 -1
  105. package/dist/{chunk-5NHDF6SM.js → chunk-IGTR66D2.js} +7 -7
  106. package/dist/{chunk-MR3MLNWV.js → chunk-IJ2CSCLP.js} +5 -2
  107. package/dist/chunk-IWBQZK6E.js +166 -0
  108. package/dist/chunk-IZDTQFCP.js +65 -0
  109. package/dist/{chunk-AEMDNTW5.js → chunk-J54BZXZX.js} +2 -2
  110. package/dist/{chunk-THZ5Q2UG.js → chunk-JHBNG7OD.js} +16 -0
  111. package/dist/{chunk-LYD3C73Z.js → chunk-JI7HMGMO.js} +1 -1
  112. package/dist/{chunk-SFSD57M5.js → chunk-JJOITP32.js} +13 -12
  113. package/dist/{chunk-KT7X72J4.js → chunk-JXSXBSV6.js} +9 -1
  114. package/dist/{chunk-33BERJSG.js → chunk-K6RZE3F7.js} +1 -1
  115. package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
  116. package/dist/{chunk-A7JOHU6Q.js → chunk-KT7CXVLT.js} +7 -6
  117. package/dist/chunk-KUBTN5TC.js +206 -0
  118. package/dist/{chunk-Q2ULPJJ6.js → chunk-KXWN75T2.js} +2 -2
  119. package/dist/{chunk-LAPEZATU.js → chunk-L7DIEO5B.js} +1 -1
  120. package/dist/{chunk-YYMACYP6.js → chunk-LEQINL55.js} +3 -2
  121. package/dist/{chunk-CMHI2RPL.js → chunk-LPIPSLR7.js} +21 -0
  122. package/dist/{chunk-7MKIOI7P.js → chunk-LQQERWMM.js} +13 -12
  123. package/dist/chunk-LXNWSQOE.js +87 -0
  124. package/dist/{chunk-ZBWL72TB.js → chunk-LXZXXOJ3.js} +1 -11
  125. package/dist/{chunk-K4WU4PVL.js → chunk-MEDZM6N7.js} +27 -11
  126. package/dist/{chunk-H3MAUKL7.js → chunk-MMKUMSZS.js} +204 -224
  127. package/dist/{chunk-DAXXLQKB.js → chunk-MO7TNIVQ.js} +1 -1
  128. package/dist/{chunk-2YE5K2D7.js → chunk-MPRW23TB.js} +50 -20
  129. package/dist/{chunk-ZN7LWXVC.js → chunk-MTHPNKQ4.js} +5 -5
  130. package/dist/{chunk-5FFZQPTT.js → chunk-MUKW4VRI.js} +13 -12
  131. package/dist/{chunk-UXGLM3B4.js → chunk-NEGOGYEO.js} +4 -4
  132. package/dist/{chunk-3VDLE5GA.js → chunk-NLJ5F7FS.js} +5 -5
  133. package/dist/{chunk-YNHS5G26.js → chunk-NQ2RDSI3.js} +2 -2
  134. package/dist/{chunk-IQCUYC42.js → chunk-O7SDCQD6.js} +25 -16
  135. package/dist/chunk-ODDJZVYL.js +476 -0
  136. package/dist/{chunk-JM7MSBWD.js → chunk-OG5AVHPY.js} +111 -29
  137. package/dist/{chunk-C4JUURO5.js → chunk-OT5X3VOQ.js} +1 -1
  138. package/dist/{chunk-MVNO35S5.js → chunk-OX6HZPVY.js} +21 -11
  139. package/dist/{chunk-5UPOHLBD.js → chunk-P2DFLKCN.js} +5 -5
  140. package/dist/{chunk-LDQY7K5W.js → chunk-P2JA3QTQ.js} +8 -7
  141. package/dist/{chunk-COP7NFSJ.js → chunk-P3GGL5JL.js} +3 -3
  142. package/dist/{chunk-6PLDJPQ3.js → chunk-PDID73QY.js} +197 -336
  143. package/dist/{chunk-CPXK5RSJ.js → chunk-PEUWV5YK.js} +3 -2
  144. package/dist/{chunk-FNKBJCNF.js → chunk-PHWYJ26A.js} +4 -4
  145. package/dist/{chunk-CYGCCNIC.js → chunk-PPRIEP4H.js} +36 -10
  146. package/dist/{chunk-VYMODH6P.js → chunk-PYF5EER5.js} +1 -1
  147. package/dist/{chunk-4AU37UL5.js → chunk-PYZ7VL5X.js} +3 -3
  148. package/dist/{chunk-X7H7TIOT.js → chunk-Q4R2O7XF.js} +9 -9
  149. package/dist/{chunk-CVBPTNG7.js → chunk-Q5DRFJPI.js} +8 -7
  150. package/dist/{chunk-5TRY5IMZ.js → chunk-Q6GUA5VE.js} +2 -2
  151. package/dist/{chunk-HEGPAGJT.js → chunk-QA7S7WVH.js} +56 -39
  152. package/dist/{chunk-X2T3AU67.js → chunk-QCIDV3AP.js} +3 -3
  153. package/dist/{chunk-3B6HI32S.js → chunk-QE4R2KT3.js} +1 -1
  154. package/dist/{chunk-LGL4QSGB.js → chunk-QEX45BI3.js} +8 -6
  155. package/dist/chunk-QJCUPZZQ.js +356 -0
  156. package/dist/chunk-QR3GYYX6.js +0 -0
  157. package/dist/{chunk-3B6MTW5G.js → chunk-QUHSHIAC.js} +3 -0
  158. package/dist/{chunk-DN2K5EAH.js → chunk-QVIX6O76.js} +2 -2
  159. package/dist/{chunk-XLE7EDWR.js → chunk-R2LW5LGL.js} +387 -61
  160. package/dist/{chunk-OH4AABUT.js → chunk-R325CPYC.js} +1 -1
  161. package/dist/{chunk-JPNPTILP.js → chunk-R4O667NT.js} +1 -1
  162. package/dist/{chunk-WPVDACTL.js → chunk-RMB7MPIT.js} +1 -1
  163. package/dist/{chunk-2FGRDEAD.js → chunk-RQQ53CQJ.js} +1 -1
  164. package/dist/{chunk-37N6S4CU.js → chunk-RT2MBSJQ.js} +9 -8
  165. package/dist/{chunk-BGQ7H2KL.js → chunk-RYISNVIR.js} +29 -15
  166. package/dist/{chunk-LEG67A2R.js → chunk-SAU35JEB.js} +2 -11
  167. package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
  168. package/dist/{chunk-PT5G44WJ.js → chunk-SLAWONP2.js} +57 -22
  169. package/dist/{chunk-KXHYJGAV.js → chunk-TIG77LHS.js} +1 -1
  170. package/dist/{chunk-PAJ335VB.js → chunk-TJJ7S3GL.js} +5 -4
  171. package/dist/{chunk-SVKQDD7E.js → chunk-UK5BVJI7.js} +2 -2
  172. package/dist/{chunk-GU52ZMNY.js → chunk-UK5CZJ4A.js} +15 -13
  173. package/dist/{chunk-CVFVEDMV.js → chunk-UVH7PC5B.js} +7 -6
  174. package/dist/{chunk-7MMLCMV3.js → chunk-VH4W6LKI.js} +4 -3
  175. package/dist/{chunk-ESPLVOFC.js → chunk-VHCDSNXF.js} +2 -2
  176. package/dist/{chunk-VMEJGGXA.js → chunk-VHOCBKSA.js} +7 -6
  177. package/dist/chunk-VM56ZITS.js +356 -0
  178. package/dist/chunk-VQ6OPDS3.js +659 -0
  179. package/dist/{chunk-4KX6CBJ4.js → chunk-VSLHL2AZ.js} +2 -0
  180. package/dist/{chunk-CKD5563X.js → chunk-VX6OCQLN.js} +7 -6
  181. package/dist/{chunk-EPHVGD5Z.js → chunk-VXW3BCN2.js} +1 -1
  182. package/dist/{chunk-UCYSCKZV.js → chunk-VYSB4CTB.js} +2114 -1699
  183. package/dist/{chunk-IAWZQKUH.js → chunk-WF2PHYTE.js} +7 -6
  184. package/dist/{chunk-2WHSCEKX.js → chunk-WF3ZDT5Z.js} +11 -95
  185. package/dist/{chunk-P5XVG4PY.js → chunk-WX4ABVXL.js} +3 -3
  186. package/dist/{chunk-KXIA66EJ.js → chunk-X4SSIHH7.js} +39 -16
  187. package/dist/{chunk-WYA62MUL.js → chunk-X5PMVI7H.js} +3 -3
  188. package/dist/{chunk-WM2BRJCJ.js → chunk-XDMCPTDG.js} +215 -122
  189. package/dist/chunk-XNUH2AOW.js +382 -0
  190. package/dist/{chunk-XODBX3LN.js → chunk-XWP4ZGKN.js} +14 -19
  191. package/dist/{chunk-WTK4MLMF.js → chunk-XXV6ZSWY.js} +7 -6
  192. package/dist/{chunk-BFT3CN5L.js → chunk-YLQ63F5E.js} +8 -7
  193. package/dist/{chunk-W6V2L2FX.js → chunk-YNR25MNM.js} +78 -56
  194. package/dist/{chunk-S4SVK5DE.js → chunk-YVLANFBK.js} +29 -1
  195. package/dist/{chunk-YDBPAHWU.js → chunk-YXKHBSQJ.js} +14 -188
  196. package/dist/{chunk-IMR3MZDP.js → chunk-Z6CIQQUZ.js} +3 -2
  197. package/dist/{chunk-NJP3DEE5.js → chunk-ZAANJVLM.js} +2 -2
  198. package/dist/{chunk-KAZ5BYTQ.js → chunk-ZAOEFQ6K.js} +5 -4
  199. package/dist/{chunk-6FHQCLHQ.js → chunk-ZOTBKQLG.js} +2 -2
  200. package/dist/{collection-add-products-6JY2OYKB.js → collection-add-products-TXJAEXUT.js} +46 -46
  201. package/dist/{collection-create-BRMP6SIZ.js → collection-create-7ZQONUJL.js} +89 -17
  202. package/dist/collection-detail-FGXNWXAN.js +104 -0
  203. package/dist/{collection-edit-YLWUEU4C.js → collection-edit-ZFAECPWC.js} +35 -12
  204. package/dist/collection-icon-edit-642AZRHR.js +117 -0
  205. package/dist/collection-list-ZLBRTQAC.js +85 -0
  206. package/dist/collection-media-LMJFEFVY.js +655 -0
  207. package/dist/{collection-metadata-PBSEIVJ6.js → collection-metadata-AZRN32RU.js} +34 -34
  208. package/dist/commission-rule-commission-edit-V5JVRNZN.js +195 -0
  209. package/dist/commission-rule-create-EZ2C6AWK.js +464 -0
  210. package/dist/commission-rule-detail-FOLHANWL.js +45 -0
  211. package/dist/commission-rule-edit-NQ5EYCGO.js +352 -0
  212. package/dist/commissions-list-SGVCP2O4.js +36 -0
  213. package/dist/{constants-Bahlh59D.d.ts → constants-CBhKGpBZ.d.ts} +12 -5
  214. package/dist/{customer-create-QHA4KM6N.js → customer-create-SC6LAEVJ.js} +3 -3
  215. package/dist/{customer-create-address-TYWVWNUE.js → customer-create-address-VZMOF5AE.js} +11 -6
  216. package/dist/{customer-detail-PZ4RLCCE.js → customer-detail-3KIDRBLW.js} +52 -52
  217. package/dist/{customer-edit-JZ4PQTIN.js → customer-edit-RAWO66UL.js} +27 -9
  218. package/dist/customer-edit-address-ZEVUPAYN.js +311 -0
  219. package/dist/{customer-group-add-customers-VJUBEN7M.js → customer-group-add-customers-LKFLDXVO.js} +14 -14
  220. package/dist/{customer-group-create-NA2UKCF6.js → customer-group-create-3KAC3R3N.js} +3 -3
  221. package/dist/{customer-group-detail-CQ7GI3CJ.js → customer-group-detail-KWHS7V6F.js} +53 -50
  222. package/dist/{customer-group-edit-3O6HAYYN.js → customer-group-edit-E7JX2L4J.js} +43 -22
  223. package/dist/customer-group-list-3FCJBXFY.js +57 -0
  224. package/dist/{customer-group-metadata-FBZAMX7J.js → customer-group-metadata-3QRU7FIE.js} +34 -34
  225. package/dist/{customer-list-MB6WZFMA.js → customer-list-JT6YE2IW.js} +11 -11
  226. package/dist/{customer-metadata-DNCPK22Y.js → customer-metadata-7DMBCQXW.js} +34 -34
  227. package/dist/{customers-add-customer-group-AJJG2XEW.js → customers-add-customer-group-IAGH6MJJ.js} +47 -46
  228. package/dist/{edit-inventory-item-MXA5NEWW.js → edit-inventory-item-QPWV4MSP.js} +55 -40
  229. package/dist/{edit-inventory-item-attributes-M2NUNSM7.js → edit-inventory-item-attributes-J7WHYKMK.js} +33 -33
  230. package/dist/{edit-reservation-6KA372WV.js → edit-reservation-PTUSCC6C.js} +29 -11
  231. package/dist/{edit-rules-2GVJU6O7.js → edit-rules-2WZOLTL7.js} +34 -34
  232. package/dist/extension-targets.d.ts +269 -0
  233. package/dist/extension-targets.js +1 -0
  234. package/dist/global-commission-edit-TRSS5JBH.js +203 -0
  235. package/dist/index.css +5187 -3
  236. package/dist/index.d.ts +16 -5
  237. package/dist/index.js +400 -328
  238. package/dist/inventory-create-RDVKGH2S.js +58 -0
  239. package/dist/{inventory-detail-47UAVORN.js → inventory-detail-LHWQTJ7S.js} +51 -47
  240. package/dist/{inventory-list-2JGX6BRI.js → inventory-list-Q2CCGYI5.js} +10 -10
  241. package/dist/{inventory-metadata-N2PZACPZ.js → inventory-metadata-CQHLKX4T.js} +34 -34
  242. package/dist/{inventory-stock-6JUYSL3S.js → inventory-stock-3TR47RNA.js} +38 -38
  243. package/dist/{invite-VQ2HR2OM.js → invite-25CGHT4W.js} +3 -3
  244. package/dist/loader-TIPLOZF7.js +32 -0
  245. package/dist/loader-ZYV22XGC.js +40 -0
  246. package/dist/{location-create-ZMNB7YKR.js → location-create-GKORXOYD.js} +3 -3
  247. package/dist/{location-detail-OET2D2VX.js → location-detail-ZRLP4XVJ.js} +36 -36
  248. package/dist/{location-edit-DMBF3CYZ.js → location-edit-T2CWF6N2.js} +3 -3
  249. package/dist/{location-fulfillment-providers-K6OKN6AY.js → location-fulfillment-providers-CL7PKPTT.js} +48 -48
  250. package/dist/location-list-HW5F37YZ.js +54 -0
  251. package/dist/{location-sales-channels-GKIWX6B2.js → location-sales-channels-Z4E5VA7M.js} +10 -11
  252. package/dist/{location-service-zone-create-ZS3UWJAA.js → location-service-zone-create-WZXZFMA2.js} +12 -12
  253. package/dist/{location-service-zone-edit-MTGU2O4C.js → location-service-zone-edit-7ZTB45TD.js} +5 -5
  254. package/dist/{location-service-zone-manage-areas-S7QZTIFT.js → location-service-zone-manage-areas-5SYZKBQK.js} +12 -12
  255. package/dist/location-service-zone-shipping-option-create-Z3S7EUYH.js +60 -0
  256. package/dist/{location-service-zone-shipping-option-edit-3PGSNKYT.js → location-service-zone-shipping-option-edit-SLQM4GSH.js} +7 -7
  257. package/dist/{location-service-zone-shipping-option-pricing-POBJOF3Z.js → location-service-zone-shipping-option-pricing-UZ577SNK.js} +9 -9
  258. package/dist/{login-LTCJJFDI.js → login-JNIVGP2G.js} +32 -32
  259. package/dist/{manage-locations-TKLOHP3D.js → manage-locations-NGNUXP3N.js} +3 -3
  260. package/dist/{marketplace-add-currencies-6ANNBGZM.js → marketplace-add-currencies-ZBLGQQCX.js} +14 -14
  261. package/dist/marketplace-detail-RZWOCVGF.js +75 -0
  262. package/dist/{marketplace-edit-6Q3G2OY5.js → marketplace-edit-WG6LMQ2P.js} +5 -5
  263. package/dist/{marketplace-metadata-KUUCCF4P.js → marketplace-metadata-74YUQ6UC.js} +34 -34
  264. package/dist/offer-detail-page-XS52BE5U.js +631 -0
  265. package/dist/offer-variant-detail-page-QQGOMRUY.js +144 -0
  266. package/dist/offers-UUFYROYV.js +198 -0
  267. package/dist/{order-create-claim-QWSJZUEM.js → order-create-claim-AG3GMAE2.js} +283 -258
  268. package/dist/{order-create-edit-M4YFR6U7.js → order-create-edit-N3TDQQIT.js} +217 -122
  269. package/dist/{order-create-exchange-RD7VOZSB.js → order-create-exchange-ZCQBC54O.js} +301 -273
  270. package/dist/{order-create-refund-XHQREMTG.js → order-create-refund-HXFCDZV5.js} +37 -37
  271. package/dist/{order-create-return-EOKSXD2G.js → order-create-return-VUHKWVQM.js} +55 -28
  272. package/dist/{order-detail-QUPHQYYD.js → order-detail-CTZELMAQ.js} +53 -50
  273. package/dist/{order-edit-billing-address-WAG2HYJP.js → order-edit-billing-address-S4YOG2EE.js} +35 -35
  274. package/dist/{order-edit-email-BVINKRKO.js → order-edit-email-VSAS3M2E.js} +34 -34
  275. package/dist/{order-edit-shipping-address-ZC5HY26W.js → order-edit-shipping-address-FZMDRJU5.js} +34 -34
  276. package/dist/{order-list-2PKEFG4L.js → order-list-EFBU3W6N.js} +20 -19
  277. package/dist/{order-metadata-NI65ZEFX.js → order-metadata-FKM3ZDNM.js} +34 -34
  278. package/dist/{order-request-transfer-X7D3T6YH.js → order-request-transfer-BCE6ED5E.js} +34 -34
  279. package/dist/pages/index.d.ts +574 -464
  280. package/dist/pages/index.js +194 -186
  281. package/dist/{payout-detail-TWO6HN4E.js → payout-detail-LY7SRCKO.js} +3 -3
  282. package/dist/{payout-list-7WJZFNW5.js → payout-list-WE3H7FKO.js} +9 -9
  283. package/dist/{price-list-configuration-Q5H22ZE2.js → price-list-configuration-4UNGTKCM.js} +15 -14
  284. package/dist/price-list-create-XGRFJ74B.js +77 -0
  285. package/dist/price-list-detail-AE6S3CEM.js +108 -0
  286. package/dist/{price-list-edit-YY4SXEI3.js → price-list-edit-4JPSL2NL.js} +28 -12
  287. package/dist/{price-list-list-OIOY43TF.js → price-list-list-EM3TNZQG.js} +12 -12
  288. package/dist/price-list-prices-add-DF6W4N6L.js +72 -0
  289. package/dist/{price-list-prices-edit-GS7L2BYX.js → price-list-prices-edit-AXJJTMKL.js} +35 -35
  290. package/dist/{product-add-existing-attributes-3Q2LGRQO.js → product-add-existing-attributes-UVVJDOEN.js} +52 -49
  291. package/dist/{product-attributes-C3KHQF2I.js → product-attributes-PCZDEFHM.js} +4 -4
  292. package/dist/{product-bulk-edit-J3CMBZN2.js → product-bulk-edit-FGB4T2KQ.js} +4 -4
  293. package/dist/product-create-3PZNLIDT.js +77 -0
  294. package/dist/{product-create-attribute-XARMC6FJ.js → product-create-attribute-6AJPI6IJ.js} +21 -11
  295. package/dist/{product-create-variant-6VUKYLWE.js → product-create-variant-2OCZA6GW.js} +8 -8
  296. package/dist/product-detail-IVRD2OHL.js +110 -0
  297. package/dist/{product-edit-F4CKOIUO.js → product-edit-KMK7CMLI.js} +9 -5
  298. package/dist/product-edit-attribute-FCEYWZWL.js +336 -0
  299. package/dist/product-list-IMKQUEIM.js +90 -0
  300. package/dist/{product-media-PKIQO5ZS.js → product-media-B5D2HUQF.js} +14 -17
  301. package/dist/{product-metadata-HMRYPUVS.js → product-metadata-6EFF4IPX.js} +35 -35
  302. package/dist/{product-organization-BFWDCHP4.js → product-organization-5FUCDOGD.js} +86 -10
  303. package/dist/{product-sales-channels-WKQSYOEX.js → product-sales-channels-GUK6FTDA.js} +9 -10
  304. package/dist/{product-shipping-profile-WDLKA2SN.js → product-shipping-profile-UFIRKPTG.js} +4 -4
  305. package/dist/{product-tag-create-JPRBCLRG.js → product-tag-create-PSY5Q437.js} +33 -33
  306. package/dist/{product-tag-detail-KAVDX34C.js → product-tag-detail-L5RXBCPS.js} +59 -57
  307. package/dist/{product-tag-edit-HZSUOL64.js → product-tag-edit-NVGUS3CY.js} +33 -33
  308. package/dist/{product-tag-list-FECZ4YS2.js → product-tag-list-UX2GZALX.js} +59 -57
  309. package/dist/{product-tag-metadata-YP4SOBCH.js → product-tag-metadata-T4ZYOIXY.js} +34 -34
  310. package/dist/{product-type-create-RHG4KEAV.js → product-type-create-PPTAW3DW.js} +3 -3
  311. package/dist/{product-type-detail-BWAJ2JO5.js → product-type-detail-LJWSJ6V5.js} +45 -45
  312. package/dist/{product-type-edit-CABB7R7Y.js → product-type-edit-55AH3P7G.js} +3 -3
  313. package/dist/{product-type-list-TM26QMHR.js → product-type-list-AQ3GEAZX.js} +10 -10
  314. package/dist/{product-type-metadata-EJOBRGZ6.js → product-type-metadata-OJJYUALT.js} +34 -34
  315. package/dist/{product-variant-detail-VXWES7XS.js → product-variant-detail-FZL5OZFE.js} +33 -33
  316. package/dist/{product-variant-edit-XH4R6M3D.js → product-variant-edit-LSSJW4DS.js} +35 -35
  317. package/dist/{product-variant-metadata-Y6SO5UJI.js → product-variant-metadata-D5AUINFJ.js} +34 -34
  318. package/dist/{profile-detail-ZRL5SERS.js → profile-detail-PFJX3LPX.js} +3 -3
  319. package/dist/{profile-edit-HQTWYWZ7.js → profile-edit-O6Z3XJ4U.js} +3 -3
  320. package/dist/{promotion-add-campaign-S3JJSFHT.js → promotion-add-campaign-PYEBYRHK.js} +7 -7
  321. package/dist/promotion-create-OFLXF3RZ.js +57 -0
  322. package/dist/promotion-detail-N7JHJGSW.js +96 -0
  323. package/dist/{promotion-edit-details-TKRC5HES.js → promotion-edit-details-GXA4FDTK.js} +29 -17
  324. package/dist/{promotion-list-SSWK44YZ.js → promotion-list-MIL2B752.js} +12 -12
  325. package/dist/{refund-reason-create-XDJFPVZL.js → refund-reason-create-HTTX2UGC.js} +33 -33
  326. package/dist/{refund-reason-edit-VI5DSC7T.js → refund-reason-edit-I7XXP4EP.js} +33 -33
  327. package/dist/{refund-reason-list-3PYLHTJZ.js → refund-reason-list-YYCNRERE.js} +50 -48
  328. package/dist/{region-add-countries-COXN4LP3.js → region-add-countries-WIJCJPOX.js} +13 -13
  329. package/dist/{region-create-P66Q65XY.js → region-create-B3I3W7QJ.js} +14 -14
  330. package/dist/{region-detail-P2HHBYFV.js → region-detail-3OFMBGML.js} +10 -10
  331. package/dist/{region-edit-XFE54SAO.js → region-edit-Z4VYO3TQ.js} +5 -5
  332. package/dist/{region-list-2XXKCDDX.js → region-list-DD5S5BD2.js} +11 -11
  333. package/dist/{region-metadata-6RR2SU5H.js → region-metadata-RRUP56B2.js} +34 -34
  334. package/dist/{reservation-create-LRSOJH6K.js → reservation-create-3RVQVMRF.js} +5 -5
  335. package/dist/{reservation-detail-L4B27AVM.js → reservation-detail-QOVPIIMC.js} +42 -38
  336. package/dist/{reservation-list-YWCTHZUL.js → reservation-list-EJPMH7UX.js} +11 -11
  337. package/dist/{reservation-metadata-W6IYXGPB.js → reservation-metadata-OAEUUCRG.js} +34 -34
  338. package/dist/{reset-password-EBZ65YXV.js → reset-password-AZ2RPOG5.js} +3 -3
  339. package/dist/{return-reason-create-KED7446I.js → return-reason-create-DYJCGEOK.js} +3 -3
  340. package/dist/{return-reason-edit-57EU3XSE.js → return-reason-edit-A7ATUTCD.js} +3 -3
  341. package/dist/{return-reason-list-74IYCLLS.js → return-reason-list-PFDQCDWA.js} +24 -22
  342. package/dist/{sales-channel-add-products-6UPTDZPP.js → sales-channel-add-products-FXWQ4LZ6.js} +47 -47
  343. package/dist/{sales-channel-create-XBR3QESI.js → sales-channel-create-77PRY5T6.js} +4 -4
  344. package/dist/{sales-channel-detail-H6XNWIK6.js → sales-channel-detail-HVPDMOUJ.js} +44 -44
  345. package/dist/{sales-channel-edit-ILBZBQP4.js → sales-channel-edit-PBN2XYEI.js} +4 -4
  346. package/dist/sales-channel-list-WBG6DUZJ.js +52 -0
  347. package/dist/{sales-channel-metadata-ILMPQGG3.js → sales-channel-metadata-RXT26TCT.js} +34 -34
  348. package/dist/{shipping-option-type-create-6JJFI3KO.js → shipping-option-type-create-2EVIHSGN.js} +33 -33
  349. package/dist/{shipping-option-type-detail-QOQ4EE2K.js → shipping-option-type-detail-BKFYUX2T.js} +34 -34
  350. package/dist/{shipping-option-type-edit-OQWZ7PWX.js → shipping-option-type-edit-LTH6PE7B.js} +33 -33
  351. package/dist/shipping-option-type-list-7F5R6ACH.js +60 -0
  352. package/dist/{shipping-profile-create-UJNCCKKK.js → shipping-profile-create-HKYX4FKJ.js} +3 -3
  353. package/dist/{shipping-profile-detail-YAKZHWZI.js → shipping-profile-detail-FOPCKNOZ.js} +3 -3
  354. package/dist/{shipping-profile-metadata-TFG6BEVX.js → shipping-profile-metadata-WRFZ55C3.js} +34 -34
  355. package/dist/{shipping-profiles-list-JF2SQIQ7.js → shipping-profiles-list-KXXYHJIY.js} +9 -9
  356. package/dist/{store-address-edit-PKIBRFH4.js → store-address-edit-M6A37RFY.js} +4 -4
  357. package/dist/{store-bulk-edit-BNF3HH5K.js → store-bulk-edit-SYHKAJ6D.js} +5 -5
  358. package/dist/{store-closure-edit-OK7MTUHY.js → store-closure-edit-VE7D5F7I.js} +3 -3
  359. package/dist/{store-create-MIMJEBST.js → store-create-6OQW7F4U.js} +37 -37
  360. package/dist/store-details-YV4U4GZK.js +104 -0
  361. package/dist/{store-edit-XNZRRLYY.js → store-edit-33N7EQE2.js} +59 -21
  362. package/dist/store-list-VTV3TYJN.js +82 -0
  363. package/dist/{store-member-invite-J5XSPWMW.js → store-member-invite-T5GCT6HV.js} +6 -6
  364. package/dist/{store-payment-details-edit-HOGHZMZC.js → store-payment-details-edit-JUM745OG.js} +3 -3
  365. package/dist/{store-professional-details-edit-DPJ4ZFDR.js → store-professional-details-edit-NKBYKBCA.js} +3 -3
  366. package/dist/{tax-region-create-FN4W4SQK.js → tax-region-create-7FXHJKVB.js} +34 -34
  367. package/dist/tax-region-detail-6AFMQQP7.js +69 -0
  368. package/dist/{tax-region-edit-RCGY5D3G.js → tax-region-edit-N64TGNAG.js} +33 -33
  369. package/dist/{tax-region-list-FIBHEFVD.js → tax-region-list-IBT5YP3U.js} +8 -8
  370. package/dist/{tax-region-metadata-NKJXZ4SR.js → tax-region-metadata-MKXFQ5B7.js} +34 -34
  371. package/dist/{tax-region-province-create-OVLIZPNP.js → tax-region-province-create-7YT2LNJG.js} +3 -3
  372. package/dist/{tax-region-province-detail-L2TWOQ7H.js → tax-region-province-detail-CBCYMSGF.js} +40 -40
  373. package/dist/{tax-region-tax-override-create-767T73RO.js → tax-region-tax-override-create-DFOUTYWV.js} +62 -62
  374. package/dist/{tax-region-tax-override-edit-T2BK7ZPA.js → tax-region-tax-override-edit-PY7XG5KR.js} +62 -62
  375. package/dist/{tax-region-tax-rate-create-KDN6G52Y.js → tax-region-tax-rate-create-3ZLVL3X3.js} +4 -4
  376. package/dist/{tax-region-tax-rate-edit-D4BFDDJ7.js → tax-region-tax-rate-edit-XVMPIJOF.js} +4 -4
  377. package/dist/{user-detail-MMVBN3AE.js → user-detail-4FDNMJ6W.js} +4 -4
  378. package/dist/{user-edit-MXS2DV37.js → user-edit-T3MZKULQ.js} +3 -3
  379. package/dist/{user-invite-HLZJ7FST.js → user-invite-LSWNFFLT.js} +12 -12
  380. package/dist/{user-list-TR7RSGUO.js → user-list-B66HEMCD.js} +8 -8
  381. package/dist/{user-metadata-IZCJT3N5.js → user-metadata-5UFWFXLX.js} +34 -34
  382. package/package.json +25 -17
  383. package/dist/[id]-272FUOXG.js +0 -503
  384. package/dist/attribute-list-SK3ZYHDB.js +0 -61
  385. package/dist/category-detail-R2VZJEAV.js +0 -107
  386. package/dist/category-organize-UY4M4N7S.js +0 -112
  387. package/dist/chunk-45CPSFTO.js +0 -371
  388. package/dist/chunk-4GFS57XI.js +0 -390
  389. package/dist/chunk-54RTJBYO.js +0 -153
  390. package/dist/chunk-6IXCZ3FF.js +0 -473
  391. package/dist/chunk-7O6WJTBI.js +0 -139
  392. package/dist/chunk-AKTAFKIU.js +0 -228
  393. package/dist/chunk-CKNQJPAG.js +0 -135
  394. package/dist/chunk-FG4NHVBO.js +0 -1755
  395. package/dist/chunk-GVEF6UDT.js +0 -8
  396. package/dist/chunk-LFKTHNWI.js +0 -83
  397. package/dist/chunk-RXM4B6HR.js +0 -8
  398. package/dist/chunk-SWL7ZCP3.js +0 -11
  399. package/dist/chunk-UM7ZR3VU.js +0 -14
  400. package/dist/collection-detail-PDR53MV5.js +0 -98
  401. package/dist/collection-list-ZAMXJO4H.js +0 -82
  402. package/dist/commission-rate-create-O2TZ56RG.js +0 -782
  403. package/dist/commission-rate-detail-Y5NPDWQN.js +0 -85
  404. package/dist/commission-rate-edit-X5RJS6XC.js +0 -767
  405. package/dist/commission-rate-list-Y5XLEO67.js +0 -26
  406. package/dist/customer-group-list-RGCIS44T.js +0 -57
  407. package/dist/inventory-create-VIIAVANZ.js +0 -58
  408. package/dist/loader-O4EABIXE.js +0 -26
  409. package/dist/location-list-YH3X5HHG.js +0 -54
  410. package/dist/location-service-zone-shipping-option-create-FK447EYC.js +0 -60
  411. package/dist/marketplace-detail-VXY6MKJS.js +0 -75
  412. package/dist/offers-O4BI5PLZ.js +0 -440
  413. package/dist/order-allocate-items-XSJ65QFV.js +0 -563
  414. package/dist/order-create-fulfillment-QT3QP5EE.js +0 -643
  415. package/dist/order-create-shipment-664JCOKN.js +0 -214
  416. package/dist/order-receive-return-KJPDZB5H.js +0 -562
  417. package/dist/price-list-create-W2NKRFCV.js +0 -77
  418. package/dist/price-list-detail-6M2QQ63Q.js +0 -104
  419. package/dist/price-list-prices-add-KGW5H7JL.js +0 -72
  420. package/dist/product-create-3WA2FHND.js +0 -71
  421. package/dist/product-detail-OKHNAVKL.js +0 -101
  422. package/dist/product-edit-attribute-LG2ZM6HQ.js +0 -175
  423. package/dist/product-list-OEM73MI2.js +0 -87
  424. package/dist/promotion-create-7HDNJF2T.js +0 -57
  425. package/dist/promotion-detail-KTPZUDXT.js +0 -90
  426. package/dist/sales-channel-list-VA2OASCG.js +0 -53
  427. package/dist/shipping-option-type-list-YRDWTDMK.js +0 -60
  428. package/dist/store-details-TGB2GFLX.js +0 -121
  429. package/dist/store-list-BLXUWEG3.js +0 -82
  430. package/dist/tax-region-detail-XN4P6VR5.js +0 -69
@@ -1,767 +0,0 @@
1
- import {
2
- TargetForm,
3
- TargetItem,
4
- TaxRateRuleReferenceSchema
5
- } from "./chunk-IQCUYC42.js";
6
- import "./chunk-5A4JNOK3.js";
7
- import "./chunk-O5VKW5FL.js";
8
- import "./chunk-LTBX54CI.js";
9
- import "./chunk-LQAAVRET.js";
10
- import "./chunk-AFQS6E4N.js";
11
- import "./chunk-DBYUB2YI.js";
12
- import "./chunk-4F5GP7J7.js";
13
- import "./chunk-54EPH67T.js";
14
- import "./chunk-QG6PLWNH.js";
15
- import "./chunk-JQV7CXEC.js";
16
- import "./chunk-KOURHC2N.js";
17
- import "./chunk-2ZFELO2L.js";
18
- import "./chunk-26OOAKQ6.js";
19
- import "./chunk-ZQZHFMD7.js";
20
- import "./chunk-SVKQDD7E.js";
21
- import "./chunk-CMHI2RPL.js";
22
- import "./chunk-I5THQVYP.js";
23
- import "./chunk-HINXQTCW.js";
24
- import "./chunk-S2WEYEQR.js";
25
- import {
26
- PercentageInput
27
- } from "./chunk-MAEP2UCK.js";
28
- import "./chunk-HC25LNX7.js";
29
- import "./chunk-MR3MLNWV.js";
30
- import "./chunk-MG4GKUJW.js";
31
- import "./chunk-AYVH6Q5O.js";
32
- import "./chunk-VOHEQ7B5.js";
33
- import "./chunk-N5IUYCUZ.js";
34
- import "./chunk-7SVLKK6Q.js";
35
- import "./chunk-GR6JUIRU.js";
36
- import "./chunk-3B6MTW5G.js";
37
- import "./chunk-VKOE5J66.js";
38
- import "./chunk-PVZBDWLK.js";
39
- import "./chunk-DY3XQPHC.js";
40
- import "./chunk-NOWUEJ74.js";
41
- import "./chunk-2Y3WMGN6.js";
42
- import "./chunk-VW56KWO2.js";
43
- import "./chunk-TZSOL34K.js";
44
- import "./chunk-25LYVP3C.js";
45
- import "./chunk-PXYDR7WQ.js";
46
- import "./chunk-JHIMVLB2.js";
47
- import "./chunk-JRTZWK77.js";
48
- import "./chunk-OMBP3YSV.js";
49
- import "./chunk-WPVDACTL.js";
50
- import "./chunk-57RZ7ZOK.js";
51
- import "./chunk-FWPGOIFA.js";
52
- import "./chunk-LYZDVZWA.js";
53
- import "./chunk-DB6ANJBO.js";
54
- import "./chunk-PHOCVOZ5.js";
55
- import "./chunk-FQERBIVS.js";
56
- import "./chunk-NQEXDLYH.js";
57
- import "./chunk-YN3FGNJM.js";
58
- import "./chunk-KAZ5BYTQ.js";
59
- import "./chunk-634XVU3D.js";
60
- import "./chunk-RT6L7JXU.js";
61
- import "./chunk-4YWKKCTT.js";
62
- import {
63
- currencies,
64
- getCurrencySymbol
65
- } from "./chunk-IQPN4PZJ.js";
66
- import "./chunk-TKGWSUEI.js";
67
- import {
68
- KeyboundForm
69
- } from "./chunk-U2ZFCAPX.js";
70
- import {
71
- RouteDrawer,
72
- StackedDrawer,
73
- useRouteModal,
74
- useStackedModal
75
- } from "./chunk-FWJLS7XD.js";
76
- import {
77
- Form
78
- } from "./chunk-3QSRE5LS.js";
79
- import "./chunk-WIYFXWRI.js";
80
- import "./chunk-UZWFZMOX.js";
81
- import "./chunk-XQNVC4Q7.js";
82
- import "./chunk-THHRRYRS.js";
83
- import "./chunk-UCYSCKZV.js";
84
- import "./chunk-LOIFUOOA.js";
85
- import "./chunk-OH4AABUT.js";
86
- import "./chunk-NJP3DEE5.js";
87
- import "./chunk-AEMDNTW5.js";
88
- import "./chunk-LYD3C73Z.js";
89
- import "./chunk-533GMKEG.js";
90
- import "./chunk-46M463BR.js";
91
- import "./chunk-YFRC6GEN.js";
92
- import "./chunk-JPNPTILP.js";
93
- import "./chunk-DAXXLQKB.js";
94
- import {
95
- useBatchCommissionRules,
96
- useCommissionRate,
97
- useUpdateCommissionRate
98
- } from "./chunk-OHOWEMHO.js";
99
- import "./chunk-GKGLVDDV.js";
100
- import "./chunk-ESPLVOFC.js";
101
- import "./chunk-N6SI4IIT.js";
102
- import "./chunk-WJJXUXSO.js";
103
- import "./chunk-LAPEZATU.js";
104
- import "./chunk-453BC56K.js";
105
- import "./chunk-Z5T5EPLF.js";
106
- import {
107
- useStore
108
- } from "./chunk-FXWKGNRV.js";
109
- import "./chunk-VDKOJ5WD.js";
110
- import "./chunk-ZN7LWXVC.js";
111
- import "./chunk-5TRY5IMZ.js";
112
- import "./chunk-EPHVGD5Z.js";
113
- import "./chunk-2WHSCEKX.js";
114
- import "./chunk-P5XVG4PY.js";
115
- import "./chunk-VYMODH6P.js";
116
- import "./chunk-LEG67A2R.js";
117
- import "./chunk-PRBE5CM3.js";
118
- import "./chunk-6FHQCLHQ.js";
119
- import "./chunk-DN2K5EAH.js";
120
- import "./chunk-LAVHRER2.js";
121
- import {
122
- useDocumentDirection
123
- } from "./chunk-Y7QKP6QU.js";
124
- import "./chunk-INNFZYX2.js";
125
- import "./chunk-H3MAUKL7.js";
126
- import "./chunk-RHKRREUU.js";
127
- import "./chunk-ZA2KFUFR.js";
128
- import "./chunk-ZBWL72TB.js";
129
- import "./chunk-NBMM2TZK.js";
130
-
131
- // src/pages/commission-rates/commission-rate-edit/commission-rate-edit.tsx
132
- import { Heading as Heading2 } from "@medusajs/ui";
133
- import { useTranslation as useTranslation2 } from "react-i18next";
134
- import { useParams } from "react-router-dom";
135
-
136
- // src/pages/commission-rates/commission-rate-edit/components/edit-commission-rate-form/edit-commission-rate-form.tsx
137
- import { zodResolver } from "@hookform/resolvers/zod";
138
- import { MagnifyingGlass } from "@medusajs/icons";
139
- import {
140
- Button,
141
- clx,
142
- CurrencyInput,
143
- Divider,
144
- Heading,
145
- Hint,
146
- Input,
147
- Label,
148
- Select,
149
- Switch,
150
- Text,
151
- toast
152
- } from "@medusajs/ui";
153
- import { useFieldArray, useForm, useWatch } from "react-hook-form";
154
- import { useTranslation } from "react-i18next";
155
- import * as zod from "zod";
156
- import { jsx, jsxs } from "react/jsx-runtime";
157
- var STACKED_MODAL_ID = "cr";
158
- var getStackedModalId = (type) => `${STACKED_MODAL_ID}-${type}`;
159
- var EditCommissionRateSchema = zod.object({
160
- name: zod.string().min(1),
161
- code: zod.string().min(1),
162
- type: zod.enum(["fixed", "percentage"]),
163
- target: zod.enum(["item", "shipping"]),
164
- value: zod.coerce.number().min(0),
165
- currency_code: zod.string().optional(),
166
- min_amount: zod.coerce.number().optional(),
167
- include_tax: zod.boolean(),
168
- priority: zod.coerce.number().int().min(0),
169
- enabled_rules: zod.object({
170
- product: zod.boolean(),
171
- product_type: zod.boolean(),
172
- shipping_option: zod.boolean()
173
- }),
174
- product: zod.array(TaxRateRuleReferenceSchema).optional(),
175
- product_type: zod.array(TaxRateRuleReferenceSchema).optional(),
176
- shipping_option: zod.array(TaxRateRuleReferenceSchema).optional()
177
- });
178
- var getRulesByType = (rules, type) => {
179
- return (rules || []).filter((r) => r.reference === type).map((r) => ({ value: r.reference_id, label: "" }));
180
- };
181
- var EditCommissionRateForm = ({
182
- commissionRate
183
- }) => {
184
- const { t } = useTranslation();
185
- const { handleSuccess } = useRouteModal();
186
- const { setIsOpen } = useStackedModal();
187
- const direction = useDocumentDirection();
188
- const initialProducts = getRulesByType(
189
- commissionRate.rules,
190
- "product" /* PRODUCT */
191
- );
192
- const initialProductTypes = getRulesByType(
193
- commissionRate.rules,
194
- "product_type" /* PRODUCT_TYPE */
195
- );
196
- const initialShippingOptions = getRulesByType(
197
- commissionRate.rules,
198
- "shipping_option" /* SHIPPING_OPTION */
199
- );
200
- const form = useForm({
201
- defaultValues: {
202
- name: commissionRate.name,
203
- code: commissionRate.code,
204
- type: commissionRate.type,
205
- target: commissionRate.target,
206
- value: commissionRate.value,
207
- currency_code: commissionRate.currency_code ?? "",
208
- min_amount: commissionRate.min_amount ?? void 0,
209
- include_tax: commissionRate.include_tax,
210
- priority: commissionRate.priority,
211
- enabled_rules: {
212
- product: initialProducts.length > 0,
213
- product_type: initialProductTypes.length > 0,
214
- shipping_option: initialShippingOptions.length > 0
215
- },
216
- product: initialProducts,
217
- product_type: initialProductTypes,
218
- shipping_option: initialShippingOptions
219
- },
220
- resolver: zodResolver(EditCommissionRateSchema)
221
- });
222
- const { store } = useStore();
223
- const storeCurrencies = (store?.supported_currencies ?? []).map(
224
- (c) => currencies[c.currency_code.toUpperCase()]
225
- );
226
- const { mutateAsync: updateCommissionRate, isPending: isUpdating } = useUpdateCommissionRate(commissionRate.id);
227
- const { mutateAsync: batchRules, isPending: isBatching } = useBatchCommissionRules(commissionRate.id);
228
- const handleSubmit = form.handleSubmit(async (values) => {
229
- const newRules = [
230
- ...(values.product || []).map((ref) => ({
231
- reference: "product" /* PRODUCT */,
232
- reference_id: ref.value
233
- })),
234
- ...(values.product_type || []).map((ref) => ({
235
- reference: "product_type" /* PRODUCT_TYPE */,
236
- reference_id: ref.value
237
- })),
238
- ...(values.shipping_option || []).map((ref) => ({
239
- reference: "shipping_option" /* SHIPPING_OPTION */,
240
- reference_id: ref.value
241
- }))
242
- ];
243
- const existingRules = commissionRate.rules || [];
244
- const toCreate = newRules.filter(
245
- (nr) => !existingRules.some(
246
- (er) => er.reference === nr.reference && er.reference_id === nr.reference_id
247
- )
248
- );
249
- const toDelete = existingRules.filter(
250
- (er) => !newRules.some(
251
- (nr) => nr.reference === er.reference && nr.reference_id === er.reference_id
252
- )
253
- ).map((er) => er.id);
254
- try {
255
- await updateCommissionRate({
256
- name: values.name,
257
- code: values.code,
258
- type: values.type,
259
- target: values.target,
260
- value: values.value,
261
- currency_code: values.currency_code || null,
262
- min_amount: values.min_amount ?? null,
263
- include_tax: values.include_tax,
264
- priority: values.priority
265
- });
266
- if (toCreate.length > 0 || toDelete.length > 0) {
267
- await batchRules({
268
- ...toCreate.length > 0 ? { create: toCreate } : {},
269
- ...toDelete.length > 0 ? { delete: toDelete } : {}
270
- });
271
- }
272
- toast.success(t("commissionRates.edit.successToast"));
273
- handleSuccess();
274
- } catch (e) {
275
- toast.error(e.message);
276
- }
277
- });
278
- const watchType = form.watch("type");
279
- const watchCurrency = form.watch("currency_code");
280
- const products = useFieldArray({
281
- control: form.control,
282
- name: "product" /* PRODUCT */
283
- });
284
- const productTypes = useFieldArray({
285
- control: form.control,
286
- name: "product_type" /* PRODUCT_TYPE */
287
- });
288
- const shippingOptions = useFieldArray({
289
- control: form.control,
290
- name: "shipping_option" /* SHIPPING_OPTION */
291
- });
292
- const getControls = (type) => {
293
- switch (type) {
294
- case "product" /* PRODUCT */:
295
- return products;
296
- case "product_type" /* PRODUCT_TYPE */:
297
- return productTypes;
298
- case "shipping_option" /* SHIPPING_OPTION */:
299
- return shippingOptions;
300
- }
301
- };
302
- const referenceTypeOptions = [
303
- {
304
- value: "product" /* PRODUCT */,
305
- label: t("taxRegions.fields.targets.options.product")
306
- },
307
- {
308
- value: "product_type" /* PRODUCT_TYPE */,
309
- label: t("taxRegions.fields.targets.options.productType")
310
- },
311
- {
312
- value: "shipping_option" /* SHIPPING_OPTION */,
313
- label: t("taxRegions.fields.targets.options.shippingOption")
314
- }
315
- ];
316
- const searchPlaceholders = {
317
- ["product" /* PRODUCT */]: t(
318
- "taxRegions.fields.targets.placeholders.product"
319
- ),
320
- ["product_type" /* PRODUCT_TYPE */]: t(
321
- "taxRegions.fields.targets.placeholders.productType"
322
- ),
323
- ["shipping_option" /* SHIPPING_OPTION */]: t(
324
- "taxRegions.fields.targets.placeholders.shippingOption"
325
- )
326
- };
327
- const getFieldHandler = (type) => {
328
- const { fields, remove, prepend } = getControls(type);
329
- const modalId = getStackedModalId(type);
330
- return (references) => {
331
- if (!references.length) {
332
- form.setValue(type, [], { shouldDirty: true });
333
- setIsOpen(modalId, false);
334
- return;
335
- }
336
- const newIds = references.map((reference) => reference.value);
337
- const fieldsToAdd = references.filter(
338
- (reference) => !fields.some((field) => field.value === reference.value)
339
- );
340
- for (const field of fields) {
341
- if (!newIds.includes(field.value)) {
342
- remove(fields.indexOf(field));
343
- }
344
- }
345
- prepend(fieldsToAdd);
346
- setIsOpen(modalId, false);
347
- };
348
- };
349
- const displayOrder = new Set(
350
- [
351
- initialProducts.length > 0 ? "product" /* PRODUCT */ : null,
352
- initialProductTypes.length > 0 ? "product_type" /* PRODUCT_TYPE */ : null,
353
- initialShippingOptions.length > 0 ? "shipping_option" /* SHIPPING_OPTION */ : null
354
- ].filter(Boolean)
355
- );
356
- const disableRule = (type) => {
357
- form.setValue(type, [], { shouldDirty: true });
358
- form.setValue(`enabled_rules.${type}`, false, { shouldDirty: true });
359
- displayOrder.delete(type);
360
- };
361
- const enableRule = (type) => {
362
- form.setValue(`enabled_rules.${type}`, true, { shouldDirty: true });
363
- form.setValue(type, [], { shouldDirty: true });
364
- displayOrder.add(type);
365
- };
366
- const watchedEnabledRules = useWatch({
367
- control: form.control,
368
- name: "enabled_rules"
369
- });
370
- const addRule = () => {
371
- const firstDisabledRule = Object.keys(watchedEnabledRules).find(
372
- (key) => !watchedEnabledRules[key]
373
- );
374
- if (firstDisabledRule) {
375
- enableRule(firstDisabledRule);
376
- }
377
- };
378
- const visibleRuleTypes = referenceTypeOptions.filter((option) => watchedEnabledRules[option.value]).sort((a, b) => {
379
- const orderArray = Array.from(displayOrder);
380
- return orderArray.indexOf(a.value) - orderArray.indexOf(b.value);
381
- });
382
- const getAvailableRuleTypes = (type) => {
383
- return referenceTypeOptions.filter((option) => {
384
- return !visibleRuleTypes.some(
385
- (visibleOption) => visibleOption.value === option.value
386
- ) || option.value === type;
387
- });
388
- };
389
- const showAddButton = Object.values(watchedEnabledRules).some(
390
- (value) => !value
391
- );
392
- const isPending = isUpdating || isBatching;
393
- return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
394
- KeyboundForm,
395
- {
396
- className: "flex flex-1 flex-col overflow-hidden",
397
- onSubmit: handleSubmit,
398
- children: [
399
- /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-1 flex-col gap-y-6 overflow-auto", children: [
400
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4", children: [
401
- /* @__PURE__ */ jsx(
402
- Form.Field,
403
- {
404
- control: form.control,
405
- name: "name",
406
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
407
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.name") }),
408
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
409
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
410
- ] })
411
- }
412
- ),
413
- /* @__PURE__ */ jsx(
414
- Form.Field,
415
- {
416
- control: form.control,
417
- name: "code",
418
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
419
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.code") }),
420
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
421
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
422
- ] })
423
- }
424
- ),
425
- /* @__PURE__ */ jsx(
426
- Form.Field,
427
- {
428
- control: form.control,
429
- name: "type",
430
- render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
431
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.type.label") }),
432
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
433
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
434
- /* @__PURE__ */ jsxs(Select.Content, { children: [
435
- /* @__PURE__ */ jsx(Select.Item, { value: "percentage", children: t("commissionRates.fields.type.percentage") }),
436
- /* @__PURE__ */ jsx(Select.Item, { value: "fixed", children: t("commissionRates.fields.type.fixed") })
437
- ] })
438
- ] }) }),
439
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
440
- ] })
441
- }
442
- ),
443
- /* @__PURE__ */ jsx(
444
- Form.Field,
445
- {
446
- control: form.control,
447
- name: "target",
448
- render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
449
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.target.label") }),
450
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
451
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
452
- /* @__PURE__ */ jsxs(Select.Content, { children: [
453
- /* @__PURE__ */ jsx(Select.Item, { value: "item", children: t("commissionRates.fields.target.item") }),
454
- /* @__PURE__ */ jsx(Select.Item, { value: "shipping", children: t("commissionRates.fields.target.shipping") })
455
- ] })
456
- ] }) }),
457
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
458
- ] })
459
- }
460
- ),
461
- /* @__PURE__ */ jsx(
462
- Form.Field,
463
- {
464
- control: form.control,
465
- name: "currency_code",
466
- render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
467
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.currencyCode") }),
468
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
469
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, { placeholder: t("commissionRates.fields.currencyPlaceholder") }) }),
470
- /* @__PURE__ */ jsx(Select.Content, { children: storeCurrencies.map((currency) => /* @__PURE__ */ jsx(
471
- Select.Item,
472
- {
473
- value: currency.code.toLowerCase(),
474
- children: currency.name
475
- },
476
- currency.code
477
- )) })
478
- ] }) }),
479
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
480
- ] })
481
- }
482
- ),
483
- /* @__PURE__ */ jsx(
484
- Form.Field,
485
- {
486
- control: form.control,
487
- name: "value",
488
- render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
489
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.rate") }),
490
- /* @__PURE__ */ jsx(Form.Control, { children: watchType === "percentage" ? /* @__PURE__ */ jsx(
491
- PercentageInput,
492
- {
493
- ...field,
494
- value,
495
- decimalsLimit: 4,
496
- onValueChange: (_value, _name, values) => onChange(values?.float ?? 0)
497
- }
498
- ) : /* @__PURE__ */ jsx(
499
- CurrencyInput,
500
- {
501
- min: 0,
502
- onValueChange: (value2) => onChange(value2 ? parseInt(value2) : ""),
503
- code: watchCurrency ?? "",
504
- symbol: watchCurrency ? getCurrencySymbol(watchCurrency) : "",
505
- ...field,
506
- value
507
- }
508
- ) }),
509
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
510
- ] })
511
- }
512
- ),
513
- /* @__PURE__ */ jsx(
514
- Form.Field,
515
- {
516
- control: form.control,
517
- name: "min_amount",
518
- render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
519
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.minAmount") }),
520
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
521
- CurrencyInput,
522
- {
523
- min: 0,
524
- onValueChange: (value2) => onChange(value2 ? parseInt(value2) : ""),
525
- code: watchCurrency ?? "",
526
- symbol: watchCurrency ? getCurrencySymbol(watchCurrency) : "",
527
- ...field,
528
- value
529
- }
530
- ) }),
531
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
532
- ] })
533
- }
534
- ),
535
- /* @__PURE__ */ jsx(
536
- Form.Field,
537
- {
538
- control: form.control,
539
- name: "priority",
540
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
541
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.priority") }),
542
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { type: "number", ...field }) }),
543
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
544
- ] })
545
- }
546
- ),
547
- /* @__PURE__ */ jsx(
548
- Form.Field,
549
- {
550
- control: form.control,
551
- name: "include_tax",
552
- render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
553
- /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
554
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.includeTax") }),
555
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
556
- Switch,
557
- {
558
- ...field,
559
- checked: value,
560
- onCheckedChange: onChange
561
- }
562
- ) })
563
- ] }),
564
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
565
- ] })
566
- }
567
- )
568
- ] }),
569
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-3", children: [
570
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-x-4", children: [
571
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
572
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-1", children: [
573
- /* @__PURE__ */ jsx(Label, { id: "commission_rules_label", htmlFor: "commission_rules", children: t("taxRegions.fields.targets.label") }),
574
- /* @__PURE__ */ jsxs(
575
- Text,
576
- {
577
- size: "small",
578
- leading: "compact",
579
- className: "text-ui-fg-muted",
580
- children: [
581
- "(",
582
- t("fields.optional"),
583
- ")"
584
- ]
585
- }
586
- )
587
- ] }),
588
- /* @__PURE__ */ jsx(Hint, { id: "commission_rules_description", className: "text-pretty", children: t("taxRegions.fields.targets.hint") })
589
- ] }),
590
- showAddButton && /* @__PURE__ */ jsx(
591
- Button,
592
- {
593
- onClick: addRule,
594
- type: "button",
595
- size: "small",
596
- variant: "transparent",
597
- className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover flex-shrink-0",
598
- children: t("taxRegions.fields.targets.action")
599
- }
600
- )
601
- ] }),
602
- /* @__PURE__ */ jsx(
603
- "div",
604
- {
605
- id: "commission_rules",
606
- "aria-labelledby": "commission_rules_label",
607
- "aria-describedby": "commission_rules_description",
608
- role: "application",
609
- className: "flex flex-col gap-y-3",
610
- children: visibleRuleTypes.map((ruleType, index) => {
611
- const type = ruleType.value;
612
- const label = ruleType.label;
613
- const isLast = index === visibleRuleTypes.length - 1;
614
- const searchPlaceholder = searchPlaceholders[type];
615
- const options = getAvailableRuleTypes(type);
616
- const modalId = getStackedModalId(type);
617
- const { fields, remove } = getControls(type);
618
- const handler = getFieldHandler(type);
619
- const handleChangeType = (value) => {
620
- disableRule(type);
621
- enableRule(value);
622
- };
623
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
624
- Form.Field,
625
- {
626
- control: form.control,
627
- name: ruleType.value,
628
- render: ({
629
- field: { value: _value, onChange: _onChange, ...field }
630
- }) => {
631
- return /* @__PURE__ */ jsxs(Form.Item, { className: "space-y-0", children: [
632
- /* @__PURE__ */ jsx(Form.Label, { className: "sr-only", children: label }),
633
- /* @__PURE__ */ jsxs(
634
- "div",
635
- {
636
- className: clx(
637
- "bg-ui-bg-component shadow-elevation-card-rest transition-fg grid gap-1.5 rounded-xl py-1.5",
638
- "aria-[invalid='true']:shadow-borders-error"
639
- ),
640
- role: "application",
641
- ...field,
642
- children: [
643
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid gap-1.5 px-1.5 md:grid-cols-2", children: [
644
- isLast ? /* @__PURE__ */ jsxs(
645
- Select,
646
- {
647
- dir: direction,
648
- value: type,
649
- onValueChange: handleChangeType,
650
- children: [
651
- /* @__PURE__ */ jsx(Select.Trigger, { className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover", children: /* @__PURE__ */ jsx(Select.Value, {}) }),
652
- /* @__PURE__ */ jsx(Select.Content, { children: options.map((option) => {
653
- return /* @__PURE__ */ jsx(
654
- Select.Item,
655
- {
656
- value: option.value,
657
- children: option.label
658
- },
659
- option.value
660
- );
661
- }) })
662
- ]
663
- }
664
- ) : /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-field shadow-borders-base txt-compact-small rounded-md px-2 py-1.5", children: label }),
665
- /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-field shadow-borders-base txt-compact-small rounded-md px-2 py-1.5", children: t("taxRegions.fields.targets.operators.in") })
666
- ] }),
667
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-1.5", children: [
668
- /* @__PURE__ */ jsxs(StackedDrawer, { id: modalId, children: [
669
- /* @__PURE__ */ jsx(StackedDrawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
670
- "button",
671
- {
672
- type: "button",
673
- className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover shadow-borders-base txt-compact-small text-ui-fg-muted transition-fg focus-visible:shadow-borders-interactive-with-active flex flex-1 items-center gap-x-2 rounded-md px-2 py-1.5 outline-none",
674
- children: [
675
- /* @__PURE__ */ jsx(MagnifyingGlass, {}),
676
- searchPlaceholder
677
- ]
678
- }
679
- ) }),
680
- /* @__PURE__ */ jsx(StackedDrawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", children: t("actions.browse") }) }),
681
- /* @__PURE__ */ jsxs(StackedDrawer.Content, { children: [
682
- /* @__PURE__ */ jsxs(StackedDrawer.Header, { children: [
683
- /* @__PURE__ */ jsx(StackedDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: t(
684
- "taxRegions.fields.targets.modal.header"
685
- ) }) }),
686
- /* @__PURE__ */ jsx(StackedDrawer.Description, { className: "sr-only", children: t("taxRegions.fields.targets.hint") })
687
- ] }),
688
- /* @__PURE__ */ jsx(
689
- TargetForm,
690
- {
691
- type: "drawer",
692
- referenceType: type,
693
- state: fields,
694
- setState: handler
695
- }
696
- )
697
- ] })
698
- ] }),
699
- /* @__PURE__ */ jsx(
700
- Button,
701
- {
702
- variant: "secondary",
703
- onClick: () => disableRule(type),
704
- type: "button",
705
- children: t("actions.delete")
706
- }
707
- )
708
- ] }),
709
- fields.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-1.5", children: [
710
- /* @__PURE__ */ jsx(Divider, { variant: "dashed" }),
711
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-1.5 px-1.5", children: fields.map((field2, index2) => {
712
- return /* @__PURE__ */ jsx(
713
- TargetItem,
714
- {
715
- index: index2,
716
- label: field2.label,
717
- value: field2.value,
718
- onRemove: remove
719
- },
720
- field2.id
721
- );
722
- }) })
723
- ] }) : null
724
- ]
725
- }
726
- ),
727
- /* @__PURE__ */ jsx(Form.ErrorMessage, { className: "mt-2" })
728
- ] });
729
- }
730
- }
731
- ) }, type);
732
- })
733
- }
734
- )
735
- ] })
736
- ] }),
737
- /* @__PURE__ */ jsxs(RouteDrawer.Footer, { children: [
738
- /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
739
- /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: t("actions.save") })
740
- ] })
741
- ]
742
- }
743
- ) });
744
- };
745
-
746
- // src/pages/commission-rates/commission-rate-edit/commission-rate-edit.tsx
747
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
748
- var CommissionRateEdit = () => {
749
- const { t } = useTranslation2();
750
- const { id } = useParams();
751
- const {
752
- commission_rate,
753
- isPending: isLoading,
754
- isError,
755
- error
756
- } = useCommissionRate(id, { fields: "*rules" });
757
- if (isError) {
758
- throw error;
759
- }
760
- return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
761
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading2, { children: t("commissionRates.edit.header") }) }),
762
- !isLoading && commission_rate && /* @__PURE__ */ jsx2(EditCommissionRateForm, { commissionRate: commission_rate })
763
- ] });
764
- };
765
- export {
766
- CommissionRateEdit as Component
767
- };