@mercurjs/admin 2.2.0-canary.5 → 2.2.0-canary.50

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 (438) hide show
  1. package/dist/{add-campaign-promotions-FAG3FAOF.js → add-campaign-promotions-QQUFYFRH.js} +14 -14
  2. package/dist/{adjust-inventory-EAAPNIBZ.js → adjust-inventory-P2M7KZ77.js} +33 -34
  3. package/dist/{api-key-management-create-MRLR4WFZ.js → api-key-management-create-KDKSGJ4C.js} +5 -5
  4. package/dist/{api-key-management-detail-PIN6NFQF.js → api-key-management-detail-O6KKT7V2.js} +36 -38
  5. package/dist/{api-key-management-edit-EZHFP3RR.js → api-key-management-edit-NOGBLKBT.js} +5 -5
  6. package/dist/{api-key-management-list-OPANEDHB.js → api-key-management-list-QVYDHEZQ.js} +9 -9
  7. package/dist/{api-key-management-sales-channels-PBL3V4IS.js → api-key-management-sales-channels-W5NFP6EW.js} +9 -10
  8. package/dist/{attribute-create-F55LOXRA.js → attribute-create-KR4DSDH2.js} +96 -83
  9. package/dist/{attribute-create-possible-value-EXVHC272.js → attribute-create-possible-value-QFXKXZM4.js} +2 -2
  10. package/dist/{attribute-detail-NRDJUPTJ.js → attribute-detail-LWKL6UMS.js} +61 -49
  11. package/dist/{attribute-edit-SB6GN67M.js → attribute-edit-WXO5FGR6.js} +7 -7
  12. package/dist/{attribute-edit-possible-value-5CLQOLVR.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-QUSXFHRZ.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-QMLFWZ6K.js → campaign-detail-PF3LUUZU.js} +49 -46
  21. package/dist/{campaign-edit-ZGLDY4X4.js → campaign-edit-6CIGS4ZU.js} +25 -9
  22. package/dist/{campaign-list-NQGNOFVZ.js → campaign-list-YXZ5GE7I.js} +7 -7
  23. package/dist/{categories-metadata-5GXBBHEH.js → categories-metadata-AIT33J5U.js} +34 -35
  24. package/dist/{category-create-QPQQGIEN.js → category-create-NTSIOKLK.js} +10 -7
  25. package/dist/category-detail-NQIXS2WH.js +113 -0
  26. package/dist/{category-edit-DJP7TK4X.js → category-edit-4PGWERPJ.js} +31 -13
  27. package/dist/category-icon-edit-C2VAH5JA.js +117 -0
  28. package/dist/{category-list-T5SE63HU.js → category-list-5XGK4PEB.js} +12 -9
  29. package/dist/category-media-E5UUDN3I.js +655 -0
  30. package/dist/category-organize-T45BC4HL.js +129 -0
  31. package/dist/{category-products-255EJFTV.js → category-products-SX6CH3ZZ.js} +48 -48
  32. package/dist/{chunk-G3GSRFTB.js → chunk-26PTCTT3.js} +9 -8
  33. package/dist/{chunk-XAIID3PU.js → chunk-2CHED2KM.js} +25 -16
  34. package/dist/{chunk-FFNSWUDC.js → chunk-2GHNKPYY.js} +39 -11
  35. package/dist/{chunk-3JSAS7QP.js → chunk-2SMBVF6F.js} +24 -7
  36. package/dist/{chunk-WQFFCK3R.js → chunk-2V74T2WI.js} +1 -1
  37. package/dist/{chunk-26UTIAAZ.js → chunk-32URSQ4F.js} +1 -1
  38. package/dist/chunk-3LGGCLSO.js +185 -0
  39. package/dist/chunk-3RRHQY24.js +1284 -0
  40. package/dist/{chunk-6RHAGO5O.js → chunk-3WOU2BB5.js} +5 -4
  41. package/dist/{chunk-VKOE5J66.js → chunk-3XOE4NV5.js} +11 -2
  42. package/dist/{chunk-GP4J42UD.js → chunk-4TNOZ4VH.js} +3 -2
  43. package/dist/{chunk-UNOG2S56.js → chunk-4XGFT4RZ.js} +167 -102
  44. package/dist/{chunk-JQV7CXEC.js → chunk-5BSSIDW6.js} +17 -2
  45. package/dist/{chunk-FB7DDNCA.js → chunk-5CHUXS7G.js} +4 -4
  46. package/dist/{chunk-PR7Y27BW.js → chunk-5EOYDQAS.js} +1 -1
  47. package/dist/{chunk-LYZDVZWA.js → chunk-5NSOIZFB.js} +5 -3
  48. package/dist/{chunk-SS7LB52P.js → chunk-5WTNXDRM.js} +10 -9
  49. package/dist/chunk-6BAPAIQM.js +8 -0
  50. package/dist/{chunk-D2NBZVQC.js → chunk-6PGIRZA6.js} +15 -13
  51. package/dist/{chunk-NQEXDLYH.js → chunk-6ZVV2XHU.js} +28 -9
  52. package/dist/{chunk-TXNRS2JR.js → chunk-7CQD5AQ6.js} +2 -6
  53. package/dist/chunk-7IGLZARZ.js +101 -0
  54. package/dist/{chunk-SONUZNDT.js → chunk-7MYE6VFQ.js} +75 -53
  55. package/dist/chunk-7OKYEA6I.js +283 -0
  56. package/dist/{chunk-GKGLVDDV.js → chunk-A2F5MDPU.js} +1 -1
  57. package/dist/{chunk-NUC27ELX.js → chunk-AASCLZ5N.js} +5 -5
  58. package/dist/{chunk-46A3QXAL.js → chunk-ABS7HMLY.js} +2 -2
  59. package/dist/{chunk-PRBE5CM3.js → chunk-AFYILTAC.js} +35 -3
  60. package/dist/{chunk-KMZOBR5Q.js → chunk-AO3P27WX.js} +19 -16
  61. package/dist/chunk-APAT344J.js +144 -0
  62. package/dist/{chunk-NMFVQDVF.js → chunk-APMBU7ZV.js} +5 -5
  63. package/dist/{chunk-EFZBEG7O.js → chunk-B3IK3FNO.js} +24 -8
  64. package/dist/{chunk-3VTAK3S6.js → chunk-BFUHW56P.js} +4 -4
  65. package/dist/chunk-BW7BDHZV.js +34 -0
  66. package/dist/{chunk-LYZT5REU.js → chunk-C4XKPQ6T.js} +14 -1
  67. package/dist/{chunk-N6SI4IIT.js → chunk-CARSKIPW.js} +1 -1
  68. package/dist/chunk-CGIVQ7D2.js +115 -0
  69. package/dist/{chunk-HR7TFO2X.js → chunk-CQKCZECQ.js} +7 -7
  70. package/dist/chunk-CU4UVEHX.js +121 -0
  71. package/dist/{chunk-M5AJSIRN.js → chunk-DJD3MWED.js} +1 -1
  72. package/dist/{chunk-HZQGZQTV.js → chunk-DP6YFZHP.js} +10 -8
  73. package/dist/{chunk-I5THQVYP.js → chunk-DUVYF37J.js} +1 -1
  74. package/dist/{chunk-FXWKGNRV.js → chunk-EJY35WBK.js} +2 -2
  75. package/dist/{chunk-KJSCFEXT.js → chunk-EQGJGBA5.js} +291 -76
  76. package/dist/{chunk-XJ3WC4G7.js → chunk-ESC6LVVC.js} +4 -3
  77. package/dist/{chunk-46M463BR.js → chunk-EWFOFSF7.js} +1 -1
  78. package/dist/{chunk-533GMKEG.js → chunk-F5NW4XBU.js} +23 -3
  79. package/dist/{chunk-5AZCIOS4.js → chunk-F6NPDZHW.js} +2 -2
  80. package/dist/{chunk-R5F52U3C.js → chunk-FIWEITDG.js} +36 -8
  81. package/dist/{chunk-UFGVU7RF.js → chunk-FLFE6HXW.js} +1 -1
  82. package/dist/{chunk-4LXBQTFN.js → chunk-FREUYHMS.js} +1 -1
  83. package/dist/{chunk-2ZRWLCYP.js → chunk-FVG5DTS6.js} +3 -3
  84. package/dist/{chunk-E5WBU7ZR.js → chunk-G2LHEJLS.js} +4 -4
  85. package/dist/{chunk-OHOWEMHO.js → chunk-G5KNNOXX.js} +32 -26
  86. package/dist/{chunk-CKUIM5ZD.js → chunk-GLWJ5J3F.js} +52 -23
  87. package/dist/{chunk-PVZBDWLK.js → chunk-GRH7C3QN.js} +1 -1
  88. package/dist/{chunk-CKD5563X.js → chunk-GT5A4XN2.js} +4 -3
  89. package/dist/{chunk-MKBCBAS2.js → chunk-GVPKRQWI.js} +79 -28
  90. package/dist/{chunk-BFT3CN5L.js → chunk-GWW6MPYK.js} +5 -4
  91. package/dist/{chunk-VDKOJ5WD.js → chunk-GYRTURN7.js} +1 -1
  92. package/dist/{chunk-YFRC6GEN.js → chunk-HLL6GLZO.js} +3 -3
  93. package/dist/{chunk-BKNAX6QQ.js → chunk-I3RIVWBQ.js} +5 -4
  94. package/dist/{chunk-6NDM5WGE.js → chunk-I5HY5Q3K.js} +19 -72
  95. package/dist/{chunk-WJJXUXSO.js → chunk-IC2PLPRP.js} +1 -1
  96. package/dist/{chunk-L3E6LES5.js → chunk-IGTR66D2.js} +7 -7
  97. package/dist/{chunk-WRVGLMRW.js → chunk-IJ2CSCLP.js} +7 -4
  98. package/dist/{chunk-EZGIPTIF.js → chunk-IOAB3VND.js} +54 -19
  99. package/dist/chunk-IWBQZK6E.js +166 -0
  100. package/dist/chunk-IZDTQFCP.js +65 -0
  101. package/dist/{chunk-AEMDNTW5.js → chunk-J54BZXZX.js} +2 -2
  102. package/dist/{chunk-A7JOHU6Q.js → chunk-J772X4Q3.js} +4 -3
  103. package/dist/{chunk-Y2M536WR.js → chunk-JHBNG7OD.js} +17 -0
  104. package/dist/{chunk-LYD3C73Z.js → chunk-JI7HMGMO.js} +1 -1
  105. package/dist/{chunk-5J2HQOKK.js → chunk-JPFPQWNT.js} +5 -4
  106. package/dist/{chunk-KT7X72J4.js → chunk-JXSXBSV6.js} +9 -1
  107. package/dist/chunk-K2JORJRZ.js +281 -0
  108. package/dist/{chunk-33BERJSG.js → chunk-K6RZE3F7.js} +1 -1
  109. package/dist/{chunk-MFI5TG54.js → chunk-KA3BALYJ.js} +56 -16
  110. package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
  111. package/dist/{chunk-VERWLDVW.js → chunk-KL4DBMVO.js} +6 -5
  112. package/dist/{chunk-EBQUMS7H.js → chunk-KQVRWXAL.js} +50 -20
  113. package/dist/chunk-KUBTN5TC.js +206 -0
  114. package/dist/{chunk-Q2ULPJJ6.js → chunk-KXWN75T2.js} +2 -2
  115. package/dist/{chunk-MVNO35S5.js → chunk-L6D7AGRF.js} +18 -8
  116. package/dist/{chunk-LAPEZATU.js → chunk-L7DIEO5B.js} +1 -1
  117. package/dist/{chunk-YYMACYP6.js → chunk-LEQINL55.js} +3 -2
  118. package/dist/{chunk-CMHI2RPL.js → chunk-LPIPSLR7.js} +21 -0
  119. package/dist/chunk-LXNWSQOE.js +87 -0
  120. package/dist/{chunk-ZBWL72TB.js → chunk-LXZXXOJ3.js} +1 -11
  121. package/dist/{chunk-GQLVERZW.js → chunk-M5BZBKA3.js} +9 -9
  122. package/dist/{chunk-4XFFF2L5.js → chunk-MBHP7XGQ.js} +12 -11
  123. package/dist/{chunk-KXIA66EJ.js → chunk-MJTFEVGB.js} +36 -13
  124. package/dist/{chunk-ZRFWXNT3.js → chunk-MMKUMSZS.js} +205 -205
  125. package/dist/{chunk-DAXXLQKB.js → chunk-MO7TNIVQ.js} +1 -1
  126. package/dist/{chunk-ZN7LWXVC.js → chunk-MTHPNKQ4.js} +5 -5
  127. package/dist/{chunk-2YN2OI3W.js → chunk-MVRIYUOU.js} +34 -8
  128. package/dist/{chunk-K43FFKGD.js → chunk-N2CMOV3N.js} +1 -1
  129. package/dist/chunk-NASXWD7N.js +659 -0
  130. package/dist/{chunk-UXGLM3B4.js → chunk-NEGOGYEO.js} +4 -4
  131. package/dist/{chunk-3OUWXGMT.js → chunk-NI4FAFNL.js} +129 -61
  132. package/dist/{chunk-SXGSYSW7.js → chunk-NLJ5F7FS.js} +15 -7
  133. package/dist/{chunk-DWCBB4QM.js → chunk-NPUD4G37.js} +7 -6
  134. package/dist/{chunk-YNHS5G26.js → chunk-NQ2RDSI3.js} +2 -2
  135. package/dist/{chunk-6XTHMAA2.js → chunk-O6KUSG6F.js} +31 -13
  136. package/dist/{chunk-KTBL35I2.js → chunk-OAGTPKC5.js} +1 -1
  137. package/dist/chunk-ODDJZVYL.js +476 -0
  138. package/dist/{chunk-Q23KHB6V.js → chunk-OG5AVHPY.js} +111 -29
  139. package/dist/{chunk-AKC67AN5.js → chunk-OPE24DZA.js} +83 -63
  140. package/dist/{chunk-C4JUURO5.js → chunk-OT5X3VOQ.js} +1 -1
  141. package/dist/chunk-OTGABFC4.js +382 -0
  142. package/dist/{chunk-LD7NVG2X.js → chunk-P2DFLKCN.js} +5 -5
  143. package/dist/{chunk-634XVU3D.js → chunk-PAYQJPGK.js} +8 -1
  144. package/dist/{chunk-CPXK5RSJ.js → chunk-PEUWV5YK.js} +3 -2
  145. package/dist/{chunk-DRJAKRTI.js → chunk-PEVS3GLB.js} +7 -6
  146. package/dist/{chunk-34OFJ74B.js → chunk-PFD4SHVF.js} +53 -36
  147. package/dist/{chunk-FNKBJCNF.js → chunk-PHWYJ26A.js} +4 -4
  148. package/dist/{chunk-VYMODH6P.js → chunk-PYF5EER5.js} +1 -1
  149. package/dist/{chunk-7BD24KNM.js → chunk-PYZ7VL5X.js} +3 -3
  150. package/dist/{chunk-QFE4AEQJ.js → chunk-Q2CJGCIA.js} +401 -107
  151. package/dist/{chunk-X7H7TIOT.js → chunk-Q4R2O7XF.js} +9 -9
  152. package/dist/{chunk-5TRY5IMZ.js → chunk-Q6GUA5VE.js} +2 -2
  153. package/dist/{chunk-B66CMFMH.js → chunk-QCIDV3AP.js} +3 -3
  154. package/dist/{chunk-TNNQPNXY.js → chunk-QE4R2KT3.js} +1 -1
  155. package/dist/{chunk-FPV32HVT.js → chunk-QEX45BI3.js} +8 -6
  156. package/dist/chunk-QJCUPZZQ.js +356 -0
  157. package/dist/chunk-QR3GYYX6.js +0 -0
  158. package/dist/{chunk-3B6MTW5G.js → chunk-QUHSHIAC.js} +3 -0
  159. package/dist/{chunk-EB5QHYKL.js → chunk-QVIX6O76.js} +2 -2
  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-UKDC2AQR.js → chunk-RMB7MPIT.js} +1 -1
  163. package/dist/{chunk-2FGRDEAD.js → chunk-RQQ53CQJ.js} +1 -1
  164. package/dist/{chunk-LEG67A2R.js → chunk-SAU35JEB.js} +2 -11
  165. package/dist/{chunk-BGQ7H2KL.js → chunk-SHFF3Y5U.js} +26 -12
  166. package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
  167. package/dist/{chunk-IAWZQKUH.js → chunk-THMINQBZ.js} +4 -3
  168. package/dist/{chunk-LO7NJYHZ.js → chunk-TJJ7S3GL.js} +5 -4
  169. package/dist/{chunk-LXMGYWPO.js → chunk-TVTI7RG5.js} +10 -9
  170. package/dist/{chunk-J4MAIN7L.js → chunk-UK5BVJI7.js} +2 -2
  171. package/dist/{chunk-P42E3L6Z.js → chunk-VH4W6LKI.js} +4 -3
  172. package/dist/{chunk-ESPLVOFC.js → chunk-VHCDSNXF.js} +2 -2
  173. package/dist/{chunk-GPJ6KVY2.js → chunk-VHOCBKSA.js} +7 -6
  174. package/dist/chunk-VM56ZITS.js +356 -0
  175. package/dist/{chunk-4KX6CBJ4.js → chunk-VSLHL2AZ.js} +2 -0
  176. package/dist/{chunk-N3334MXP.js → chunk-VU6KTPOZ.js} +647 -754
  177. package/dist/{chunk-K6L5PHHQ.js → chunk-VVJPSCBO.js} +10 -9
  178. package/dist/{chunk-EPHVGD5Z.js → chunk-VXW3BCN2.js} +1 -1
  179. package/dist/{chunk-F5H5JZQZ.js → chunk-VYSB4CTB.js} +2112 -1706
  180. package/dist/{chunk-N3BYBEDV.js → chunk-WF3ZDT5Z.js} +11 -95
  181. package/dist/{chunk-X3PXBMI3.js → chunk-WNBV2NBG.js} +11 -10
  182. package/dist/{chunk-F7O6IXPA.js → chunk-WV4SPFOD.js} +72 -30
  183. package/dist/{chunk-ZB4SO44T.js → chunk-WX4ABVXL.js} +3 -3
  184. package/dist/{chunk-WYA62MUL.js → chunk-X5PMVI7H.js} +3 -3
  185. package/dist/{chunk-2MVNFKL6.js → chunk-XJQ4MWBR.js} +16 -15
  186. package/dist/{chunk-DV7QV3X2.js → chunk-XWP4ZGKN.js} +11 -16
  187. package/dist/{chunk-IWI34SYT.js → chunk-Y6C2YIKD.js} +8 -7
  188. package/dist/{chunk-CVFVEDMV.js → chunk-YBVXGODN.js} +4 -3
  189. package/dist/{chunk-X45JKZYW.js → chunk-YL7CBNVF.js} +11 -8
  190. package/dist/chunk-YPM6XXSO.js +525 -0
  191. package/dist/{chunk-S4SVK5DE.js → chunk-YVLANFBK.js} +29 -1
  192. package/dist/{chunk-3L7M4E7W.js → chunk-YXKHBSQJ.js} +14 -188
  193. package/dist/{chunk-IMR3MZDP.js → chunk-Z6CIQQUZ.js} +3 -2
  194. package/dist/{chunk-ACDG3RAL.js → chunk-Z7XMG6DA.js} +89 -128
  195. package/dist/{chunk-4RT7P5ZQ.js → chunk-ZAANJVLM.js} +2 -2
  196. package/dist/{chunk-KAZ5BYTQ.js → chunk-ZAOEFQ6K.js} +5 -4
  197. package/dist/{chunk-SA3MMYXT.js → chunk-ZCQMFJ4X.js} +22 -10
  198. package/dist/{chunk-FEC24V7X.js → chunk-ZOTBKQLG.js} +2 -2
  199. package/dist/{chunk-COP7NFSJ.js → chunk-ZVPTNPLI.js} +3 -3
  200. package/dist/{collection-add-products-4ZTBHENL.js → collection-add-products-TRY52HYQ.js} +45 -46
  201. package/dist/{collection-create-GPBN7KO6.js → collection-create-7ZQONUJL.js} +89 -17
  202. package/dist/collection-detail-MQ7ZH6OT.js +104 -0
  203. package/dist/{collection-edit-NVRFKO46.js → collection-edit-ZFAECPWC.js} +35 -12
  204. package/dist/collection-icon-edit-642AZRHR.js +117 -0
  205. package/dist/collection-list-YMCTIJ52.js +85 -0
  206. package/dist/collection-media-LMJFEFVY.js +655 -0
  207. package/dist/{collection-metadata-E4C54MTU.js → collection-metadata-AZRN32RU.js} +34 -35
  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-56S53CQ4.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-ONZGPCHW.js → customer-detail-VIWHZUOZ.js} +51 -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-VKUSW6AS.js} +13 -13
  220. package/dist/{customer-group-create-NA2UKCF6.js → customer-group-create-3KAC3R3N.js} +3 -3
  221. package/dist/{customer-group-detail-XTCDJX7O.js → customer-group-detail-JVULZZTT.js} +51 -49
  222. package/dist/{customer-group-edit-3O6HAYYN.js → customer-group-edit-E7JX2L4J.js} +43 -22
  223. package/dist/customer-group-list-SKODEZKB.js +57 -0
  224. package/dist/{customer-group-metadata-N7HGHXNC.js → customer-group-metadata-3QRU7FIE.js} +34 -35
  225. package/dist/{customer-list-MB6WZFMA.js → customer-list-LYDL4IEG.js} +9 -9
  226. package/dist/{customer-metadata-63OWV4KB.js → customer-metadata-7DMBCQXW.js} +34 -35
  227. package/dist/{customers-add-customer-group-NUXPXNUC.js → customers-add-customer-group-FXRUE5SD.js} +46 -46
  228. package/dist/{edit-inventory-item-YOJTYA7H.js → edit-inventory-item-QPWV4MSP.js} +55 -41
  229. package/dist/{edit-inventory-item-attributes-JGY633F2.js → edit-inventory-item-attributes-J7WHYKMK.js} +33 -34
  230. package/dist/{edit-reservation-ACDUXG33.js → edit-reservation-PTUSCC6C.js} +29 -11
  231. package/dist/{edit-rules-4VAD5Q3L.js → edit-rules-2WZOLTL7.js} +34 -35
  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 +405 -383
  238. package/dist/inventory-create-RDVKGH2S.js +58 -0
  239. package/dist/{inventory-detail-B3HU2OVR.js → inventory-detail-J7NMO7EZ.js} +50 -47
  240. package/dist/{inventory-list-AE44PEW7.js → inventory-list-XBDJ7BHE.js} +8 -8
  241. package/dist/{inventory-metadata-WCFTI7AH.js → inventory-metadata-CQHLKX4T.js} +34 -35
  242. package/dist/{inventory-stock-M65W4GRN.js → inventory-stock-3TR47RNA.js} +38 -39
  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-2NCZD5MO.js → location-detail-DTBVSZBJ.js} +36 -37
  248. package/dist/{location-edit-DMBF3CYZ.js → location-edit-T2CWF6N2.js} +3 -3
  249. package/dist/{location-fulfillment-providers-3XKOFATD.js → location-fulfillment-providers-P5U5K4NO.js} +46 -47
  250. package/dist/location-list-LH27WJBT.js +54 -0
  251. package/dist/{location-sales-channels-TEUZYDTT.js → location-sales-channels-PRQUBZIV.js} +9 -10
  252. package/dist/{location-service-zone-create-ZS3UWJAA.js → location-service-zone-create-O6GYRZEE.js} +11 -11
  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-DBP3P27I.js} +11 -11
  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-DJWU5X5L.js → login-JNIVGP2G.js} +32 -33
  259. package/dist/{manage-locations-E2XQPKKE.js → manage-locations-NGNUXP3N.js} +3 -3
  260. package/dist/{marketplace-add-currencies-6ANNBGZM.js → marketplace-add-currencies-IPE5RJF6.js} +13 -13
  261. package/dist/marketplace-detail-VNCNRAE4.js +75 -0
  262. package/dist/{marketplace-edit-6Q3G2OY5.js → marketplace-edit-WG6LMQ2P.js} +5 -5
  263. package/dist/{marketplace-metadata-7DNBHUDD.js → marketplace-metadata-74YUQ6UC.js} +34 -35
  264. package/dist/offer-detail-page-KQMSZLQN.js +631 -0
  265. package/dist/offer-variant-detail-page-GESVAA2S.js +144 -0
  266. package/dist/offers-NW24IATZ.js +198 -0
  267. package/dist/{order-create-claim-MPSXY24H.js → order-create-claim-Y7ESDXLI.js} +284 -259
  268. package/dist/{order-create-edit-6JLXERBY.js → order-create-edit-CAKL6MJQ.js} +215 -120
  269. package/dist/{order-create-exchange-O6COEAGJ.js → order-create-exchange-QGSECB7D.js} +302 -275
  270. package/dist/{order-create-refund-TCNCSOMX.js → order-create-refund-HXFCDZV5.js} +37 -38
  271. package/dist/{order-create-return-EVSD6GKE.js → order-create-return-R5WJBQ5W.js} +58 -31
  272. package/dist/{order-detail-BOW62X75.js → order-detail-DGZXN7IQ.js} +53 -51
  273. package/dist/{order-edit-billing-address-5ZBOWDWQ.js → order-edit-billing-address-ZAQ3FPRT.js} +35 -36
  274. package/dist/{order-edit-email-DQJW2SAM.js → order-edit-email-VSAS3M2E.js} +34 -35
  275. package/dist/{order-edit-shipping-address-RIML4XFQ.js → order-edit-shipping-address-FZMDRJU5.js} +34 -35
  276. package/dist/{order-list-U5DZYLJK.js → order-list-6LIYSO2R.js} +19 -18
  277. package/dist/{order-metadata-WGZUETFN.js → order-metadata-FKM3ZDNM.js} +34 -35
  278. package/dist/{order-request-transfer-QFUMEZPD.js → order-request-transfer-BCE6ED5E.js} +34 -35
  279. package/dist/pages/index.d.ts +574 -491
  280. package/dist/pages/index.js +204 -206
  281. package/dist/{payout-detail-TWO6HN4E.js → payout-detail-LY7SRCKO.js} +3 -3
  282. package/dist/{payout-list-7WJZFNW5.js → payout-list-VUJKOAOJ.js} +8 -8
  283. package/dist/{price-list-configuration-O3MR5IUA.js → price-list-configuration-DYFBYDQE.js} +14 -13
  284. package/dist/price-list-create-U2DMHUQE.js +77 -0
  285. package/dist/price-list-detail-CAK3AFSU.js +108 -0
  286. package/dist/{price-list-edit-OJAYEUYO.js → price-list-edit-4JPSL2NL.js} +28 -12
  287. package/dist/{price-list-list-ARICU2NA.js → price-list-list-PJIIPQOF.js} +11 -11
  288. package/dist/price-list-prices-add-6TO5RTTD.js +72 -0
  289. package/dist/{price-list-prices-edit-4HBSUC5W.js → price-list-prices-edit-AXJJTMKL.js} +35 -36
  290. package/dist/{product-add-existing-attributes-IHCIKDIH.js → product-add-existing-attributes-XIJB2NXI.js} +93 -54
  291. package/dist/{product-attributes-ZURXNZ3J.js → product-attributes-PCZDEFHM.js} +4 -4
  292. package/dist/{product-bulk-edit-LHCPVFUX.js → product-bulk-edit-FGB4T2KQ.js} +4 -4
  293. package/dist/product-create-KCMW6PCB.js +71 -0
  294. package/dist/{product-create-attribute-UBWABT2Q.js → product-create-attribute-6AJPI6IJ.js} +92 -54
  295. package/dist/{product-create-variant-MVYZPDO7.js → product-create-variant-2OCZA6GW.js} +8 -8
  296. package/dist/product-detail-A6DZWYEL.js +110 -0
  297. package/dist/{product-edit-EDW3D2KW.js → product-edit-KMK7CMLI.js} +9 -5
  298. package/dist/product-edit-attribute-FCEYWZWL.js +336 -0
  299. package/dist/product-list-CIHKL6N7.js +90 -0
  300. package/dist/{product-media-J3VTWOU4.js → product-media-P57SRDNX.js} +14 -17
  301. package/dist/{product-metadata-T2D4GEIP.js → product-metadata-6EFF4IPX.js} +35 -36
  302. package/dist/{product-organization-D6UMZAUE.js → product-organization-QNCCL277.js} +84 -51
  303. package/dist/{product-sales-channels-NTT6KMSD.js → product-sales-channels-GD7NYUP3.js} +8 -9
  304. package/dist/{product-shipping-profile-WM7LORFB.js → product-shipping-profile-UFIRKPTG.js} +4 -4
  305. package/dist/{product-tag-create-47G425O2.js → product-tag-create-PSY5Q437.js} +33 -34
  306. package/dist/{product-tag-detail-VNGOBWYE.js → product-tag-detail-D54OKWUZ.js} +58 -57
  307. package/dist/{product-tag-edit-DN7IVL75.js → product-tag-edit-NVGUS3CY.js} +33 -34
  308. package/dist/{product-tag-list-ZGRJZT2U.js → product-tag-list-QNWZAU5G.js} +58 -57
  309. package/dist/{product-tag-metadata-YLDBRJMI.js → product-tag-metadata-T4ZYOIXY.js} +34 -35
  310. package/dist/{product-type-create-RHG4KEAV.js → product-type-create-PPTAW3DW.js} +3 -3
  311. package/dist/{product-type-detail-MPONGCVO.js → product-type-detail-TXZ6HTOV.js} +44 -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-OZILJZLG.js} +8 -8
  314. package/dist/{product-type-metadata-TDAER7JD.js → product-type-metadata-OJJYUALT.js} +34 -35
  315. package/dist/{product-variant-detail-5BF6JTHV.js → product-variant-detail-FZL5OZFE.js} +33 -34
  316. package/dist/{product-variant-edit-2RHFG2CZ.js → product-variant-edit-LSSJW4DS.js} +35 -36
  317. package/dist/{product-variant-metadata-G2LLH7YK.js → product-variant-metadata-D5AUINFJ.js} +34 -35
  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-H6S4JYYD.js +96 -0
  323. package/dist/{promotion-edit-details-TKRC5HES.js → promotion-edit-details-GXA4FDTK.js} +29 -17
  324. package/dist/{promotion-list-AFBLWKTJ.js → promotion-list-A3V4W5DY.js} +10 -10
  325. package/dist/{refund-reason-create-6RPQHIJI.js → refund-reason-create-HTTX2UGC.js} +33 -34
  326. package/dist/{refund-reason-edit-W2TVZB3N.js → refund-reason-edit-I7XXP4EP.js} +33 -34
  327. package/dist/{refund-reason-list-TS6JWYS4.js → refund-reason-list-YYCNRERE.js} +49 -48
  328. package/dist/{region-add-countries-COXN4LP3.js → region-add-countries-UO5A42HM.js} +12 -12
  329. package/dist/{region-create-P66Q65XY.js → region-create-7NA6RKWS.js} +13 -13
  330. package/dist/{region-detail-P2HHBYFV.js → region-detail-VA4FGEKA.js} +9 -9
  331. package/dist/{region-edit-XFE54SAO.js → region-edit-Z4VYO3TQ.js} +5 -5
  332. package/dist/{region-list-2XXKCDDX.js → region-list-WU4LTP5Y.js} +9 -9
  333. package/dist/{region-metadata-TNSJDCBM.js → region-metadata-RRUP56B2.js} +34 -35
  334. package/dist/{reservation-create-2TDZAX5A.js → reservation-create-3RVQVMRF.js} +5 -5
  335. package/dist/{reservation-detail-KFOVTTFH.js → reservation-detail-QOVPIIMC.js} +42 -39
  336. package/dist/{reservation-list-K4RPXJTO.js → reservation-list-SGGW2MSN.js} +9 -9
  337. package/dist/{reservation-metadata-HBFAVVPW.js → reservation-metadata-OAEUUCRG.js} +34 -35
  338. package/dist/{reset-password-3NYZNQPK.js → reset-password-7KNQD6OM.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-WBLPUYD4.js → return-reason-list-HMSZJDKI.js} +23 -21
  342. package/dist/{sales-channel-add-products-IHGDKRKH.js → sales-channel-add-products-6TXYF3HM.js} +46 -47
  343. package/dist/{sales-channel-create-MPZCRQBT.js → sales-channel-create-77PRY5T6.js} +4 -4
  344. package/dist/{sales-channel-detail-QCFO7VUA.js → sales-channel-detail-SYE4FUXD.js} +43 -44
  345. package/dist/{sales-channel-edit-GILK4QK3.js → sales-channel-edit-PBN2XYEI.js} +4 -4
  346. package/dist/sales-channel-list-4CNHLSBR.js +52 -0
  347. package/dist/{sales-channel-metadata-OEQVWJRQ.js → sales-channel-metadata-RXT26TCT.js} +34 -35
  348. package/dist/{shipping-option-type-create-SMXDCF6I.js → shipping-option-type-create-2EVIHSGN.js} +33 -34
  349. package/dist/{shipping-option-type-detail-MO3YRUVR.js → shipping-option-type-detail-BKFYUX2T.js} +34 -35
  350. package/dist/{shipping-option-type-edit-KO64TZS6.js → shipping-option-type-edit-LTH6PE7B.js} +33 -34
  351. package/dist/shipping-option-type-list-7NSGG7ZI.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-FLTMLAZN.js → shipping-profile-metadata-WRFZ55C3.js} +34 -35
  355. package/dist/{shipping-profiles-list-JF2SQIQ7.js → shipping-profiles-list-AKSZ4O35.js} +7 -7
  356. package/dist/{store-address-edit-PKIBRFH4.js → store-address-edit-M6A37RFY.js} +4 -4
  357. package/dist/{store-bulk-edit-LW6ABDJK.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-STR6YNFJ.js → store-create-6OQW7F4U.js} +37 -38
  360. package/dist/store-details-45RPSTMU.js +104 -0
  361. package/dist/{store-edit-KRBR5MGV.js → store-edit-HABD7SAL.js} +59 -21
  362. package/dist/store-list-XZU26QTH.js +82 -0
  363. package/dist/{store-member-invite-AKH3KHMF.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-NEKIT7TT.js → tax-region-create-SKBBBZXJ.js} +34 -35
  367. package/dist/tax-region-detail-UGD2KK2H.js +69 -0
  368. package/dist/{tax-region-edit-4PJV5F5X.js → tax-region-edit-N64TGNAG.js} +33 -34
  369. package/dist/{tax-region-list-FIBHEFVD.js → tax-region-list-GRZIXRD4.js} +8 -8
  370. package/dist/{tax-region-metadata-EYRFMJLL.js → tax-region-metadata-MKXFQ5B7.js} +34 -35
  371. package/dist/{tax-region-province-create-OVLIZPNP.js → tax-region-province-create-7YT2LNJG.js} +3 -3
  372. package/dist/{tax-region-province-detail-MTHKW7LW.js → tax-region-province-detail-LITAO6EZ.js} +40 -41
  373. package/dist/{tax-region-tax-override-create-OGW3MPBD.js → tax-region-tax-override-create-NCAWHUOU.js} +61 -62
  374. package/dist/{tax-region-tax-override-edit-LTZCYN4Y.js → tax-region-tax-override-edit-OOP7RQZR.js} +61 -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-2OTVNTCL.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-FCWARLW5.js} +11 -11
  380. package/dist/{user-list-TR7RSGUO.js → user-list-62A6ZMIX.js} +7 -7
  381. package/dist/{user-metadata-GIR3A7WO.js → user-metadata-5UFWFXLX.js} +34 -35
  382. package/package.json +25 -17
  383. package/dist/[id]-272FUOXG.js +0 -503
  384. package/dist/attribute-list-URWKNTSJ.js +0 -62
  385. package/dist/category-detail-RIKOZMPK.js +0 -108
  386. package/dist/category-organize-DQQGAAJY.js +0 -112
  387. package/dist/chunk-2XVH2IJL.js +0 -473
  388. package/dist/chunk-54RTJBYO.js +0 -153
  389. package/dist/chunk-6WBQDJIH.js +0 -1733
  390. package/dist/chunk-7O6WJTBI.js +0 -139
  391. package/dist/chunk-AKTAFKIU.js +0 -228
  392. package/dist/chunk-CKNQJPAG.js +0 -135
  393. package/dist/chunk-DDANJIE7.js +0 -207
  394. package/dist/chunk-GVEF6UDT.js +0 -8
  395. package/dist/chunk-J65IXAGI.js +0 -292
  396. package/dist/chunk-LFKTHNWI.js +0 -83
  397. package/dist/chunk-MSESXKMA.js +0 -390
  398. package/dist/chunk-RXM4B6HR.js +0 -8
  399. package/dist/chunk-SWL7ZCP3.js +0 -11
  400. package/dist/chunk-TE245WV3.js +0 -371
  401. package/dist/chunk-UM7ZR3VU.js +0 -14
  402. package/dist/chunk-V5XHY5LP.js +0 -39
  403. package/dist/chunk-ZZ3XFIEM.js +0 -84
  404. package/dist/collection-detail-W7OC2ALM.js +0 -99
  405. package/dist/collection-list-B7LALPSA.js +0 -83
  406. package/dist/commission-rate-create-7MEIKAXK.js +0 -783
  407. package/dist/commission-rate-detail-XBMB3Y7S.js +0 -86
  408. package/dist/commission-rate-edit-XXUAGK5Q.js +0 -768
  409. package/dist/commission-rate-list-Y5XLEO67.js +0 -26
  410. package/dist/customer-group-list-63ER7WQH.js +0 -58
  411. package/dist/inventory-create-3NJZLSFO.js +0 -59
  412. package/dist/loader-O4EABIXE.js +0 -26
  413. package/dist/location-list-VS6V2FXE.js +0 -55
  414. package/dist/location-service-zone-shipping-option-create-LAM3OHBC.js +0 -61
  415. package/dist/marketplace-detail-IQLU7R3J.js +0 -76
  416. package/dist/offers-UJCSO3RD.js +0 -440
  417. package/dist/order-allocate-items-TMVWJUV3.js +0 -563
  418. package/dist/order-create-fulfillment-Y4HQ5YRS.js +0 -644
  419. package/dist/order-create-shipment-EWOJJXEM.js +0 -215
  420. package/dist/order-receive-return-MDUU4L4X.js +0 -563
  421. package/dist/price-list-create-J4AJG42T.js +0 -78
  422. package/dist/price-list-detail-D2ETNZ5N.js +0 -105
  423. package/dist/price-list-prices-add-FQLQ5DPX.js +0 -73
  424. package/dist/product-brand-create-B3ZJGHUQ.js +0 -171
  425. package/dist/product-brand-detail-O7UKYV4H.js +0 -100
  426. package/dist/product-brand-edit-3TQDHZNN.js +0 -179
  427. package/dist/product-brand-list-ZBPBSRQN.js +0 -30
  428. package/dist/product-brand-metadata-N2CJ5K3Z.js +0 -87
  429. package/dist/product-create-BQXFDMEP.js +0 -72
  430. package/dist/product-detail-I57XSYLB.js +0 -102
  431. package/dist/product-list-PR532XII.js +0 -88
  432. package/dist/promotion-create-G3M4UJX2.js +0 -58
  433. package/dist/promotion-detail-4EHU6FKF.js +0 -91
  434. package/dist/sales-channel-list-YNHR5EHL.js +0 -54
  435. package/dist/shipping-option-type-list-6C26GWDM.js +0 -61
  436. package/dist/store-details-3U4OEFWC.js +0 -122
  437. package/dist/store-list-PJ3U254I.js +0 -83
  438. package/dist/tax-region-detail-LVN5XSN5.js +0 -70
@@ -1,768 +0,0 @@
1
- import {
2
- TargetForm,
3
- TargetItem,
4
- TaxRateRuleReferenceSchema
5
- } from "./chunk-XAIID3PU.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-J4MAIN7L.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-WRVGLMRW.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-6NDM5WGE.js";
49
- import "./chunk-UKDC2AQR.js";
50
- import "./chunk-NMFVQDVF.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-F5H5JZQZ.js";
83
- import "./chunk-THHRRYRS.js";
84
- import "./chunk-46A3QXAL.js";
85
- import "./chunk-OH4AABUT.js";
86
- import "./chunk-AEMDNTW5.js";
87
- import "./chunk-LYD3C73Z.js";
88
- import "./chunk-ZZ3XFIEM.js";
89
- import "./chunk-4RT7P5ZQ.js";
90
- import "./chunk-533GMKEG.js";
91
- import "./chunk-46M463BR.js";
92
- import "./chunk-YFRC6GEN.js";
93
- import "./chunk-JPNPTILP.js";
94
- import "./chunk-DAXXLQKB.js";
95
- import {
96
- useBatchCommissionRules,
97
- useCommissionRate,
98
- useUpdateCommissionRate
99
- } from "./chunk-OHOWEMHO.js";
100
- import "./chunk-GKGLVDDV.js";
101
- import "./chunk-ESPLVOFC.js";
102
- import "./chunk-N6SI4IIT.js";
103
- import "./chunk-WJJXUXSO.js";
104
- import "./chunk-LAPEZATU.js";
105
- import "./chunk-2ZRWLCYP.js";
106
- import "./chunk-E5WBU7ZR.js";
107
- import {
108
- useStore
109
- } from "./chunk-FXWKGNRV.js";
110
- import "./chunk-VDKOJ5WD.js";
111
- import "./chunk-ZN7LWXVC.js";
112
- import "./chunk-5TRY5IMZ.js";
113
- import "./chunk-EPHVGD5Z.js";
114
- import "./chunk-N3BYBEDV.js";
115
- import "./chunk-ZB4SO44T.js";
116
- import "./chunk-VYMODH6P.js";
117
- import "./chunk-LEG67A2R.js";
118
- import "./chunk-PRBE5CM3.js";
119
- import "./chunk-FEC24V7X.js";
120
- import "./chunk-EB5QHYKL.js";
121
- import "./chunk-LAVHRER2.js";
122
- import {
123
- useDocumentDirection
124
- } from "./chunk-Y7QKP6QU.js";
125
- import "./chunk-INNFZYX2.js";
126
- import "./chunk-ZRFWXNT3.js";
127
- import "./chunk-RHKRREUU.js";
128
- import "./chunk-ZA2KFUFR.js";
129
- import "./chunk-ZBWL72TB.js";
130
- import "./chunk-NBMM2TZK.js";
131
-
132
- // src/pages/commission-rates/commission-rate-edit/commission-rate-edit.tsx
133
- import { Heading as Heading2 } from "@medusajs/ui";
134
- import { useTranslation as useTranslation2 } from "react-i18next";
135
- import { useParams } from "react-router-dom";
136
-
137
- // src/pages/commission-rates/commission-rate-edit/components/edit-commission-rate-form/edit-commission-rate-form.tsx
138
- import { zodResolver } from "@hookform/resolvers/zod";
139
- import { MagnifyingGlass } from "@medusajs/icons";
140
- import {
141
- Button,
142
- clx,
143
- CurrencyInput,
144
- Divider,
145
- Heading,
146
- Hint,
147
- Input,
148
- Label,
149
- Select,
150
- Switch,
151
- Text,
152
- toast
153
- } from "@medusajs/ui";
154
- import { useFieldArray, useForm, useWatch } from "react-hook-form";
155
- import { useTranslation } from "react-i18next";
156
- import * as zod from "zod";
157
- import { jsx, jsxs } from "react/jsx-runtime";
158
- var STACKED_MODAL_ID = "cr";
159
- var getStackedModalId = (type) => `${STACKED_MODAL_ID}-${type}`;
160
- var EditCommissionRateSchema = zod.object({
161
- name: zod.string().min(1),
162
- code: zod.string().min(1),
163
- type: zod.enum(["fixed", "percentage"]),
164
- target: zod.enum(["item", "shipping"]),
165
- value: zod.coerce.number().min(0),
166
- currency_code: zod.string().optional(),
167
- min_amount: zod.coerce.number().optional(),
168
- include_tax: zod.boolean(),
169
- priority: zod.coerce.number().int().min(0),
170
- enabled_rules: zod.object({
171
- product: zod.boolean(),
172
- product_type: zod.boolean(),
173
- shipping_option: zod.boolean()
174
- }),
175
- product: zod.array(TaxRateRuleReferenceSchema).optional(),
176
- product_type: zod.array(TaxRateRuleReferenceSchema).optional(),
177
- shipping_option: zod.array(TaxRateRuleReferenceSchema).optional()
178
- });
179
- var getRulesByType = (rules, type) => {
180
- return (rules || []).filter((r) => r.reference === type).map((r) => ({ value: r.reference_id, label: "" }));
181
- };
182
- var EditCommissionRateForm = ({
183
- commissionRate
184
- }) => {
185
- const { t } = useTranslation();
186
- const { handleSuccess } = useRouteModal();
187
- const { setIsOpen } = useStackedModal();
188
- const direction = useDocumentDirection();
189
- const initialProducts = getRulesByType(
190
- commissionRate.rules,
191
- "product" /* PRODUCT */
192
- );
193
- const initialProductTypes = getRulesByType(
194
- commissionRate.rules,
195
- "product_type" /* PRODUCT_TYPE */
196
- );
197
- const initialShippingOptions = getRulesByType(
198
- commissionRate.rules,
199
- "shipping_option" /* SHIPPING_OPTION */
200
- );
201
- const form = useForm({
202
- defaultValues: {
203
- name: commissionRate.name,
204
- code: commissionRate.code,
205
- type: commissionRate.type,
206
- target: commissionRate.target,
207
- value: commissionRate.value,
208
- currency_code: commissionRate.currency_code ?? "",
209
- min_amount: commissionRate.min_amount ?? void 0,
210
- include_tax: commissionRate.include_tax,
211
- priority: commissionRate.priority,
212
- enabled_rules: {
213
- product: initialProducts.length > 0,
214
- product_type: initialProductTypes.length > 0,
215
- shipping_option: initialShippingOptions.length > 0
216
- },
217
- product: initialProducts,
218
- product_type: initialProductTypes,
219
- shipping_option: initialShippingOptions
220
- },
221
- resolver: zodResolver(EditCommissionRateSchema)
222
- });
223
- const { store } = useStore();
224
- const storeCurrencies = (store?.supported_currencies ?? []).map(
225
- (c) => currencies[c.currency_code.toUpperCase()]
226
- );
227
- const { mutateAsync: updateCommissionRate, isPending: isUpdating } = useUpdateCommissionRate(commissionRate.id);
228
- const { mutateAsync: batchRules, isPending: isBatching } = useBatchCommissionRules(commissionRate.id);
229
- const handleSubmit = form.handleSubmit(async (values) => {
230
- const newRules = [
231
- ...(values.product || []).map((ref) => ({
232
- reference: "product" /* PRODUCT */,
233
- reference_id: ref.value
234
- })),
235
- ...(values.product_type || []).map((ref) => ({
236
- reference: "product_type" /* PRODUCT_TYPE */,
237
- reference_id: ref.value
238
- })),
239
- ...(values.shipping_option || []).map((ref) => ({
240
- reference: "shipping_option" /* SHIPPING_OPTION */,
241
- reference_id: ref.value
242
- }))
243
- ];
244
- const existingRules = commissionRate.rules || [];
245
- const toCreate = newRules.filter(
246
- (nr) => !existingRules.some(
247
- (er) => er.reference === nr.reference && er.reference_id === nr.reference_id
248
- )
249
- );
250
- const toDelete = existingRules.filter(
251
- (er) => !newRules.some(
252
- (nr) => nr.reference === er.reference && nr.reference_id === er.reference_id
253
- )
254
- ).map((er) => er.id);
255
- try {
256
- await updateCommissionRate({
257
- name: values.name,
258
- code: values.code,
259
- type: values.type,
260
- target: values.target,
261
- value: values.value,
262
- currency_code: values.currency_code || null,
263
- min_amount: values.min_amount ?? null,
264
- include_tax: values.include_tax,
265
- priority: values.priority
266
- });
267
- if (toCreate.length > 0 || toDelete.length > 0) {
268
- await batchRules({
269
- ...toCreate.length > 0 ? { create: toCreate } : {},
270
- ...toDelete.length > 0 ? { delete: toDelete } : {}
271
- });
272
- }
273
- toast.success(t("commissionRates.edit.successToast"));
274
- handleSuccess();
275
- } catch (e) {
276
- toast.error(e.message);
277
- }
278
- });
279
- const watchType = form.watch("type");
280
- const watchCurrency = form.watch("currency_code");
281
- const products = useFieldArray({
282
- control: form.control,
283
- name: "product" /* PRODUCT */
284
- });
285
- const productTypes = useFieldArray({
286
- control: form.control,
287
- name: "product_type" /* PRODUCT_TYPE */
288
- });
289
- const shippingOptions = useFieldArray({
290
- control: form.control,
291
- name: "shipping_option" /* SHIPPING_OPTION */
292
- });
293
- const getControls = (type) => {
294
- switch (type) {
295
- case "product" /* PRODUCT */:
296
- return products;
297
- case "product_type" /* PRODUCT_TYPE */:
298
- return productTypes;
299
- case "shipping_option" /* SHIPPING_OPTION */:
300
- return shippingOptions;
301
- }
302
- };
303
- const referenceTypeOptions = [
304
- {
305
- value: "product" /* PRODUCT */,
306
- label: t("taxRegions.fields.targets.options.product")
307
- },
308
- {
309
- value: "product_type" /* PRODUCT_TYPE */,
310
- label: t("taxRegions.fields.targets.options.productType")
311
- },
312
- {
313
- value: "shipping_option" /* SHIPPING_OPTION */,
314
- label: t("taxRegions.fields.targets.options.shippingOption")
315
- }
316
- ];
317
- const searchPlaceholders = {
318
- ["product" /* PRODUCT */]: t(
319
- "taxRegions.fields.targets.placeholders.product"
320
- ),
321
- ["product_type" /* PRODUCT_TYPE */]: t(
322
- "taxRegions.fields.targets.placeholders.productType"
323
- ),
324
- ["shipping_option" /* SHIPPING_OPTION */]: t(
325
- "taxRegions.fields.targets.placeholders.shippingOption"
326
- )
327
- };
328
- const getFieldHandler = (type) => {
329
- const { fields, remove, prepend } = getControls(type);
330
- const modalId = getStackedModalId(type);
331
- return (references) => {
332
- if (!references.length) {
333
- form.setValue(type, [], { shouldDirty: true });
334
- setIsOpen(modalId, false);
335
- return;
336
- }
337
- const newIds = references.map((reference) => reference.value);
338
- const fieldsToAdd = references.filter(
339
- (reference) => !fields.some((field) => field.value === reference.value)
340
- );
341
- for (const field of fields) {
342
- if (!newIds.includes(field.value)) {
343
- remove(fields.indexOf(field));
344
- }
345
- }
346
- prepend(fieldsToAdd);
347
- setIsOpen(modalId, false);
348
- };
349
- };
350
- const displayOrder = new Set(
351
- [
352
- initialProducts.length > 0 ? "product" /* PRODUCT */ : null,
353
- initialProductTypes.length > 0 ? "product_type" /* PRODUCT_TYPE */ : null,
354
- initialShippingOptions.length > 0 ? "shipping_option" /* SHIPPING_OPTION */ : null
355
- ].filter(Boolean)
356
- );
357
- const disableRule = (type) => {
358
- form.setValue(type, [], { shouldDirty: true });
359
- form.setValue(`enabled_rules.${type}`, false, { shouldDirty: true });
360
- displayOrder.delete(type);
361
- };
362
- const enableRule = (type) => {
363
- form.setValue(`enabled_rules.${type}`, true, { shouldDirty: true });
364
- form.setValue(type, [], { shouldDirty: true });
365
- displayOrder.add(type);
366
- };
367
- const watchedEnabledRules = useWatch({
368
- control: form.control,
369
- name: "enabled_rules"
370
- });
371
- const addRule = () => {
372
- const firstDisabledRule = Object.keys(watchedEnabledRules).find(
373
- (key) => !watchedEnabledRules[key]
374
- );
375
- if (firstDisabledRule) {
376
- enableRule(firstDisabledRule);
377
- }
378
- };
379
- const visibleRuleTypes = referenceTypeOptions.filter((option) => watchedEnabledRules[option.value]).sort((a, b) => {
380
- const orderArray = Array.from(displayOrder);
381
- return orderArray.indexOf(a.value) - orderArray.indexOf(b.value);
382
- });
383
- const getAvailableRuleTypes = (type) => {
384
- return referenceTypeOptions.filter((option) => {
385
- return !visibleRuleTypes.some(
386
- (visibleOption) => visibleOption.value === option.value
387
- ) || option.value === type;
388
- });
389
- };
390
- const showAddButton = Object.values(watchedEnabledRules).some(
391
- (value) => !value
392
- );
393
- const isPending = isUpdating || isBatching;
394
- return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
395
- KeyboundForm,
396
- {
397
- className: "flex flex-1 flex-col overflow-hidden",
398
- onSubmit: handleSubmit,
399
- children: [
400
- /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-1 flex-col gap-y-6 overflow-auto", children: [
401
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4", children: [
402
- /* @__PURE__ */ jsx(
403
- Form.Field,
404
- {
405
- control: form.control,
406
- name: "name",
407
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
408
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.name") }),
409
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
410
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
411
- ] })
412
- }
413
- ),
414
- /* @__PURE__ */ jsx(
415
- Form.Field,
416
- {
417
- control: form.control,
418
- name: "code",
419
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
420
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.code") }),
421
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
422
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
423
- ] })
424
- }
425
- ),
426
- /* @__PURE__ */ jsx(
427
- Form.Field,
428
- {
429
- control: form.control,
430
- name: "type",
431
- render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
432
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.type.label") }),
433
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
434
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
435
- /* @__PURE__ */ jsxs(Select.Content, { children: [
436
- /* @__PURE__ */ jsx(Select.Item, { value: "percentage", children: t("commissionRates.fields.type.percentage") }),
437
- /* @__PURE__ */ jsx(Select.Item, { value: "fixed", children: t("commissionRates.fields.type.fixed") })
438
- ] })
439
- ] }) }),
440
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
441
- ] })
442
- }
443
- ),
444
- /* @__PURE__ */ jsx(
445
- Form.Field,
446
- {
447
- control: form.control,
448
- name: "target",
449
- render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
450
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.target.label") }),
451
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
452
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
453
- /* @__PURE__ */ jsxs(Select.Content, { children: [
454
- /* @__PURE__ */ jsx(Select.Item, { value: "item", children: t("commissionRates.fields.target.item") }),
455
- /* @__PURE__ */ jsx(Select.Item, { value: "shipping", children: t("commissionRates.fields.target.shipping") })
456
- ] })
457
- ] }) }),
458
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
459
- ] })
460
- }
461
- ),
462
- /* @__PURE__ */ jsx(
463
- Form.Field,
464
- {
465
- control: form.control,
466
- name: "currency_code",
467
- render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
468
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.currencyCode") }),
469
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
470
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, { placeholder: t("commissionRates.fields.currencyPlaceholder") }) }),
471
- /* @__PURE__ */ jsx(Select.Content, { children: storeCurrencies.map((currency) => /* @__PURE__ */ jsx(
472
- Select.Item,
473
- {
474
- value: currency.code.toLowerCase(),
475
- children: currency.name
476
- },
477
- currency.code
478
- )) })
479
- ] }) }),
480
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
481
- ] })
482
- }
483
- ),
484
- /* @__PURE__ */ jsx(
485
- Form.Field,
486
- {
487
- control: form.control,
488
- name: "value",
489
- render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
490
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.rate") }),
491
- /* @__PURE__ */ jsx(Form.Control, { children: watchType === "percentage" ? /* @__PURE__ */ jsx(
492
- PercentageInput,
493
- {
494
- ...field,
495
- value,
496
- decimalsLimit: 4,
497
- onValueChange: (_value, _name, values) => onChange(values?.float ?? 0)
498
- }
499
- ) : /* @__PURE__ */ jsx(
500
- CurrencyInput,
501
- {
502
- min: 0,
503
- onValueChange: (value2) => onChange(value2 ? parseInt(value2) : ""),
504
- code: watchCurrency ?? "",
505
- symbol: watchCurrency ? getCurrencySymbol(watchCurrency) : "",
506
- ...field,
507
- value
508
- }
509
- ) }),
510
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
511
- ] })
512
- }
513
- ),
514
- /* @__PURE__ */ jsx(
515
- Form.Field,
516
- {
517
- control: form.control,
518
- name: "min_amount",
519
- render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
520
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.minAmount") }),
521
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
522
- CurrencyInput,
523
- {
524
- min: 0,
525
- onValueChange: (value2) => onChange(value2 ? parseInt(value2) : ""),
526
- code: watchCurrency ?? "",
527
- symbol: watchCurrency ? getCurrencySymbol(watchCurrency) : "",
528
- ...field,
529
- value
530
- }
531
- ) }),
532
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
533
- ] })
534
- }
535
- ),
536
- /* @__PURE__ */ jsx(
537
- Form.Field,
538
- {
539
- control: form.control,
540
- name: "priority",
541
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
542
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.priority") }),
543
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { type: "number", ...field }) }),
544
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
545
- ] })
546
- }
547
- ),
548
- /* @__PURE__ */ jsx(
549
- Form.Field,
550
- {
551
- control: form.control,
552
- name: "include_tax",
553
- render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
554
- /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
555
- /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.includeTax") }),
556
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
557
- Switch,
558
- {
559
- ...field,
560
- checked: value,
561
- onCheckedChange: onChange
562
- }
563
- ) })
564
- ] }),
565
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
566
- ] })
567
- }
568
- )
569
- ] }),
570
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-3", children: [
571
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-x-4", children: [
572
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
573
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-1", children: [
574
- /* @__PURE__ */ jsx(Label, { id: "commission_rules_label", htmlFor: "commission_rules", children: t("taxRegions.fields.targets.label") }),
575
- /* @__PURE__ */ jsxs(
576
- Text,
577
- {
578
- size: "small",
579
- leading: "compact",
580
- className: "text-ui-fg-muted",
581
- children: [
582
- "(",
583
- t("fields.optional"),
584
- ")"
585
- ]
586
- }
587
- )
588
- ] }),
589
- /* @__PURE__ */ jsx(Hint, { id: "commission_rules_description", className: "text-pretty", children: t("taxRegions.fields.targets.hint") })
590
- ] }),
591
- showAddButton && /* @__PURE__ */ jsx(
592
- Button,
593
- {
594
- onClick: addRule,
595
- type: "button",
596
- size: "small",
597
- variant: "transparent",
598
- className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover flex-shrink-0",
599
- children: t("taxRegions.fields.targets.action")
600
- }
601
- )
602
- ] }),
603
- /* @__PURE__ */ jsx(
604
- "div",
605
- {
606
- id: "commission_rules",
607
- "aria-labelledby": "commission_rules_label",
608
- "aria-describedby": "commission_rules_description",
609
- role: "application",
610
- className: "flex flex-col gap-y-3",
611
- children: visibleRuleTypes.map((ruleType, index) => {
612
- const type = ruleType.value;
613
- const label = ruleType.label;
614
- const isLast = index === visibleRuleTypes.length - 1;
615
- const searchPlaceholder = searchPlaceholders[type];
616
- const options = getAvailableRuleTypes(type);
617
- const modalId = getStackedModalId(type);
618
- const { fields, remove } = getControls(type);
619
- const handler = getFieldHandler(type);
620
- const handleChangeType = (value) => {
621
- disableRule(type);
622
- enableRule(value);
623
- };
624
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
625
- Form.Field,
626
- {
627
- control: form.control,
628
- name: ruleType.value,
629
- render: ({
630
- field: { value: _value, onChange: _onChange, ...field }
631
- }) => {
632
- return /* @__PURE__ */ jsxs(Form.Item, { className: "space-y-0", children: [
633
- /* @__PURE__ */ jsx(Form.Label, { className: "sr-only", children: label }),
634
- /* @__PURE__ */ jsxs(
635
- "div",
636
- {
637
- className: clx(
638
- "bg-ui-bg-component shadow-elevation-card-rest transition-fg grid gap-1.5 rounded-xl py-1.5",
639
- "aria-[invalid='true']:shadow-borders-error"
640
- ),
641
- role: "application",
642
- ...field,
643
- children: [
644
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid gap-1.5 px-1.5 md:grid-cols-2", children: [
645
- isLast ? /* @__PURE__ */ jsxs(
646
- Select,
647
- {
648
- dir: direction,
649
- value: type,
650
- onValueChange: handleChangeType,
651
- children: [
652
- /* @__PURE__ */ jsx(Select.Trigger, { className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover", children: /* @__PURE__ */ jsx(Select.Value, {}) }),
653
- /* @__PURE__ */ jsx(Select.Content, { children: options.map((option) => {
654
- return /* @__PURE__ */ jsx(
655
- Select.Item,
656
- {
657
- value: option.value,
658
- children: option.label
659
- },
660
- option.value
661
- );
662
- }) })
663
- ]
664
- }
665
- ) : /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-field shadow-borders-base txt-compact-small rounded-md px-2 py-1.5", children: label }),
666
- /* @__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") })
667
- ] }),
668
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-1.5", children: [
669
- /* @__PURE__ */ jsxs(StackedDrawer, { id: modalId, children: [
670
- /* @__PURE__ */ jsx(StackedDrawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
671
- "button",
672
- {
673
- type: "button",
674
- 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",
675
- children: [
676
- /* @__PURE__ */ jsx(MagnifyingGlass, {}),
677
- searchPlaceholder
678
- ]
679
- }
680
- ) }),
681
- /* @__PURE__ */ jsx(StackedDrawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", children: t("actions.browse") }) }),
682
- /* @__PURE__ */ jsxs(StackedDrawer.Content, { children: [
683
- /* @__PURE__ */ jsxs(StackedDrawer.Header, { children: [
684
- /* @__PURE__ */ jsx(StackedDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: t(
685
- "taxRegions.fields.targets.modal.header"
686
- ) }) }),
687
- /* @__PURE__ */ jsx(StackedDrawer.Description, { className: "sr-only", children: t("taxRegions.fields.targets.hint") })
688
- ] }),
689
- /* @__PURE__ */ jsx(
690
- TargetForm,
691
- {
692
- type: "drawer",
693
- referenceType: type,
694
- state: fields,
695
- setState: handler
696
- }
697
- )
698
- ] })
699
- ] }),
700
- /* @__PURE__ */ jsx(
701
- Button,
702
- {
703
- variant: "secondary",
704
- onClick: () => disableRule(type),
705
- type: "button",
706
- children: t("actions.delete")
707
- }
708
- )
709
- ] }),
710
- fields.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-1.5", children: [
711
- /* @__PURE__ */ jsx(Divider, { variant: "dashed" }),
712
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-1.5 px-1.5", children: fields.map((field2, index2) => {
713
- return /* @__PURE__ */ jsx(
714
- TargetItem,
715
- {
716
- index: index2,
717
- label: field2.label,
718
- value: field2.value,
719
- onRemove: remove
720
- },
721
- field2.id
722
- );
723
- }) })
724
- ] }) : null
725
- ]
726
- }
727
- ),
728
- /* @__PURE__ */ jsx(Form.ErrorMessage, { className: "mt-2" })
729
- ] });
730
- }
731
- }
732
- ) }, type);
733
- })
734
- }
735
- )
736
- ] })
737
- ] }),
738
- /* @__PURE__ */ jsxs(RouteDrawer.Footer, { children: [
739
- /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
740
- /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: t("actions.save") })
741
- ] })
742
- ]
743
- }
744
- ) });
745
- };
746
-
747
- // src/pages/commission-rates/commission-rate-edit/commission-rate-edit.tsx
748
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
749
- var CommissionRateEdit = () => {
750
- const { t } = useTranslation2();
751
- const { id } = useParams();
752
- const {
753
- commission_rate,
754
- isPending: isLoading,
755
- isError,
756
- error
757
- } = useCommissionRate(id, { fields: "*rules" });
758
- if (isError) {
759
- throw error;
760
- }
761
- return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
762
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading2, { children: t("commissionRates.edit.header") }) }),
763
- !isLoading && commission_rate && /* @__PURE__ */ jsx2(EditCommissionRateForm, { commissionRate: commission_rate })
764
- ] });
765
- };
766
- export {
767
- CommissionRateEdit as Component
768
- };