@mercurjs/admin 2.2.0-canary.7 → 2.2.0-canary.9

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 (231) hide show
  1. package/dist/{add-campaign-promotions-2XFYP6GK.js → add-campaign-promotions-XANY2FIV.js} +3 -3
  2. package/dist/{adjust-inventory-EAAPNIBZ.js → adjust-inventory-DJRDNU2V.js} +9 -10
  3. package/dist/{api-key-management-create-MRLR4WFZ.js → api-key-management-create-UD5V7TOU.js} +3 -3
  4. package/dist/{api-key-management-detail-PIN6NFQF.js → api-key-management-detail-XJVWUU2C.js} +12 -13
  5. package/dist/{api-key-management-edit-EZHFP3RR.js → api-key-management-edit-4TLKJSAE.js} +3 -3
  6. package/dist/{api-key-management-list-OPANEDHB.js → api-key-management-list-SZUSD6UI.js} +4 -4
  7. package/dist/{api-key-management-sales-channels-PBL3V4IS.js → api-key-management-sales-channels-TK6XEGF3.js} +3 -3
  8. package/dist/{attribute-create-WDJSDXKD.js → attribute-create-2COL3PJX.js} +43 -19
  9. package/dist/{attribute-detail-3JGQV7BG.js → attribute-detail-7SK3MWGQ.js} +10 -11
  10. package/dist/{attribute-edit-SSG3XZOJ.js → attribute-edit-LUY66TG3.js} +2 -2
  11. package/dist/{attribute-edit-possible-value-5TBYLJY4.js → attribute-edit-possible-value-IOS3625C.js} +2 -2
  12. package/dist/{attribute-list-URWKNTSJ.js → attribute-list-SK3ZYHDB.js} +9 -10
  13. package/dist/{campaign-detail-336RBLOX.js → campaign-detail-XL3QCW5Y.js} +13 -14
  14. package/dist/{categories-metadata-5GXBBHEH.js → categories-metadata-C6HVQRH2.js} +9 -10
  15. package/dist/{category-create-QPQQGIEN.js → category-create-GMCJABRW.js} +4 -4
  16. package/dist/{category-detail-RIKOZMPK.js → category-detail-R2VZJEAV.js} +15 -16
  17. package/dist/{category-edit-DJP7TK4X.js → category-edit-GLE4NTFG.js} +2 -2
  18. package/dist/{category-list-T5SE63HU.js → category-list-SNVOQ64L.js} +4 -4
  19. package/dist/{category-organize-DQQGAAJY.js → category-organize-UY4M4N7S.js} +2 -2
  20. package/dist/{category-products-255EJFTV.js → category-products-EWBBAXAH.js} +13 -14
  21. package/dist/{chunk-MKBCBAS2.js → chunk-2OF7GB7J.js} +4 -4
  22. package/dist/{chunk-N3BYBEDV.js → chunk-2WHSCEKX.js} +2 -2
  23. package/dist/{chunk-CKPGRDZS.js → chunk-2YE5K2D7.js} +1 -1
  24. package/dist/{chunk-VERWLDVW.js → chunk-37N6S4CU.js} +3 -3
  25. package/dist/{chunk-TNNQPNXY.js → chunk-3B6HI32S.js} +1 -1
  26. package/dist/{chunk-BEJ3IR7B.js → chunk-3VDLE5GA.js} +9 -1
  27. package/dist/{chunk-E5WBU7ZR.js → chunk-453BC56K.js} +1 -1
  28. package/dist/{chunk-TE245WV3.js → chunk-45CPSFTO.js} +4 -4
  29. package/dist/{chunk-7BD24KNM.js → chunk-4AU37UL5.js} +2 -2
  30. package/dist/{chunk-MSESXKMA.js → chunk-4GFS57XI.js} +1 -1
  31. package/dist/{chunk-NMFVQDVF.js → chunk-57RZ7ZOK.js} +4 -4
  32. package/dist/{chunk-K6L5PHHQ.js → chunk-5FFZQPTT.js} +1 -1
  33. package/dist/{chunk-L3E6LES5.js → chunk-5NHDF6SM.js} +3 -3
  34. package/dist/{chunk-LD7NVG2X.js → chunk-5UPOHLBD.js} +3 -3
  35. package/dist/{chunk-FEC24V7X.js → chunk-6FHQCLHQ.js} +1 -1
  36. package/dist/{chunk-2XVH2IJL.js → chunk-6IXCZ3FF.js} +5 -5
  37. package/dist/{chunk-N3334MXP.js → chunk-6PLDJPQ3.js} +65 -31
  38. package/dist/{chunk-LXMGYWPO.js → chunk-7MKIOI7P.js} +3 -3
  39. package/dist/{chunk-P42E3L6Z.js → chunk-7MMLCMV3.js} +1 -1
  40. package/dist/{chunk-R5F52U3C.js → chunk-AWCVVFEY.js} +1 -1
  41. package/dist/{chunk-BKNAX6QQ.js → chunk-BPCU5QJE.js} +1 -1
  42. package/dist/{chunk-ISJOBO5P.js → chunk-BSU6VOKG.js} +6 -3
  43. package/dist/{chunk-6RHAGO5O.js → chunk-CVBPTNG7.js} +2 -2
  44. package/dist/{chunk-CKUIM5ZD.js → chunk-CVFX57MN.js} +5 -5
  45. package/dist/{chunk-2YN2OI3W.js → chunk-CYGCCNIC.js} +2 -2
  46. package/dist/{chunk-GIVLDQXN.js → chunk-D4PQL46N.js} +1 -1
  47. package/dist/{chunk-EB5QHYKL.js → chunk-DN2K5EAH.js} +1 -1
  48. package/dist/{chunk-Q6VW2MR5.js → chunk-EHGCFAN6.js} +1 -1
  49. package/dist/{chunk-IWI34SYT.js → chunk-FDD7TANX.js} +1 -1
  50. package/dist/{chunk-6WBQDJIH.js → chunk-FG4NHVBO.js} +85 -63
  51. package/dist/{chunk-D2NBZVQC.js → chunk-GU52ZMNY.js} +4 -4
  52. package/dist/{chunk-ZRFWXNT3.js → chunk-H3MAUKL7.js} +20 -0
  53. package/dist/{chunk-34OFJ74B.js → chunk-HEGPAGJT.js} +2 -2
  54. package/dist/{chunk-XAIID3PU.js → chunk-IQCUYC42.js} +4 -4
  55. package/dist/{chunk-Q23KHB6V.js → chunk-JM7MSBWD.js} +2 -2
  56. package/dist/{chunk-M5AJSIRN.js → chunk-JSMUFZZN.js} +1 -1
  57. package/dist/{chunk-EFZBEG7O.js → chunk-K4WU4PVL.js} +1 -1
  58. package/dist/{chunk-72SSKT5O.js → chunk-KXHYJGAV.js} +1 -1
  59. package/dist/{chunk-5J2HQOKK.js → chunk-LDQY7K5W.js} +1 -1
  60. package/dist/{chunk-FPV32HVT.js → chunk-LGL4QSGB.js} +1 -1
  61. package/dist/{chunk-46A3QXAL.js → chunk-LOIFUOOA.js} +1 -1
  62. package/dist/{chunk-WRVGLMRW.js → chunk-MR3MLNWV.js} +3 -3
  63. package/dist/{chunk-X3PXBMI3.js → chunk-N7OVIX55.js} +1 -1
  64. package/dist/{chunk-ACDG3RAL.js → chunk-NJ7V6YWI.js} +1 -1
  65. package/dist/{chunk-4RT7P5ZQ.js → chunk-NJP3DEE5.js} +1 -1
  66. package/dist/{chunk-UFGVU7RF.js → chunk-OKDODCIP.js} +1 -1
  67. package/dist/{chunk-6NDM5WGE.js → chunk-OMBP3YSV.js} +1 -1
  68. package/dist/{chunk-ZB4SO44T.js → chunk-P5XVG4PY.js} +1 -1
  69. package/dist/{chunk-LO7NJYHZ.js → chunk-PAJ335VB.js} +2 -2
  70. package/dist/{chunk-GQLVERZW.js → chunk-PASEZJC7.js} +1 -1
  71. package/dist/{chunk-UNOG2S56.js → chunk-PMWLTPYR.js} +6 -6
  72. package/dist/{chunk-EZGIPTIF.js → chunk-PT5G44WJ.js} +2 -2
  73. package/dist/{chunk-HZQGZQTV.js → chunk-QUPUWR42.js} +1 -1
  74. package/dist/{chunk-SS7LB52P.js → chunk-SFSD57M5.js} +5 -5
  75. package/dist/{chunk-PR7Y27BW.js → chunk-SJGIQGEC.js} +1 -1
  76. package/dist/{chunk-2MVNFKL6.js → chunk-SV5YQGFE.js} +4 -4
  77. package/dist/{chunk-J4MAIN7L.js → chunk-SVKQDD7E.js} +1 -1
  78. package/dist/{chunk-TXNRS2JR.js → chunk-TE4IF3MM.js} +1 -1
  79. package/dist/{chunk-Y2M536WR.js → chunk-THZ5Q2UG.js} +1 -0
  80. package/dist/{chunk-MFI5TG54.js → chunk-TLDLOE27.js} +3 -3
  81. package/dist/{chunk-4XFFF2L5.js → chunk-UCX2T4BQ.js} +2 -2
  82. package/dist/{chunk-F5H5JZQZ.js → chunk-UCYSCKZV.js} +0 -9
  83. package/dist/{chunk-GPJ6KVY2.js → chunk-VMEJGGXA.js} +2 -2
  84. package/dist/{chunk-6XTHMAA2.js → chunk-VT5E7OMM.js} +2 -2
  85. package/dist/{chunk-KMZOBR5Q.js → chunk-VY7PT4SI.js} +1 -1
  86. package/dist/{chunk-Y6GMH5KH.js → chunk-W2QNDZTH.js} +1 -1
  87. package/dist/{chunk-SONUZNDT.js → chunk-W6V2L2FX.js} +2 -2
  88. package/dist/{chunk-SFHM7YDA.js → chunk-WM2BRJCJ.js} +5 -5
  89. package/dist/{chunk-UKDC2AQR.js → chunk-WPVDACTL.js} +1 -1
  90. package/dist/{chunk-DWCBB4QM.js → chunk-WTK4MLMF.js} +1 -1
  91. package/dist/{chunk-B66CMFMH.js → chunk-X2T3AU67.js} +2 -2
  92. package/dist/{chunk-KJSCFEXT.js → chunk-X4EKVL5F.js} +2 -2
  93. package/dist/{chunk-FUE374HM.js → chunk-XLE7EDWR.js} +17 -49
  94. package/dist/{chunk-G3GSRFTB.js → chunk-Y6NDT26D.js} +4 -4
  95. package/dist/{chunk-3L7M4E7W.js → chunk-YDBPAHWU.js} +1 -1
  96. package/dist/{chunk-2ZRWLCYP.js → chunk-Z5T5EPLF.js} +1 -1
  97. package/dist/{collection-add-products-4ZTBHENL.js → collection-add-products-6JY2OYKB.js} +13 -14
  98. package/dist/{collection-create-GPBN7KO6.js → collection-create-BRMP6SIZ.js} +2 -2
  99. package/dist/{collection-detail-W7OC2ALM.js → collection-detail-PDR53MV5.js} +14 -15
  100. package/dist/{collection-edit-NVRFKO46.js → collection-edit-YLWUEU4C.js} +2 -2
  101. package/dist/{collection-list-B7LALPSA.js → collection-list-ZAMXJO4H.js} +14 -15
  102. package/dist/{collection-metadata-E4C54MTU.js → collection-metadata-PBSEIVJ6.js} +9 -10
  103. package/dist/{commission-rate-create-7MEIKAXK.js → commission-rate-create-O2TZ56RG.js} +16 -17
  104. package/dist/{commission-rate-detail-XBMB3Y7S.js → commission-rate-detail-Y5NPDWQN.js} +10 -11
  105. package/dist/{commission-rate-edit-XXUAGK5Q.js → commission-rate-edit-X5RJS6XC.js} +16 -17
  106. package/dist/{customer-detail-ONZGPCHW.js → customer-detail-PZ4RLCCE.js} +11 -12
  107. package/dist/{customer-group-detail-XTCDJX7O.js → customer-group-detail-CQ7GI3CJ.js} +9 -10
  108. package/dist/{customer-group-list-63ER7WQH.js → customer-group-list-RGCIS44T.js} +9 -10
  109. package/dist/{customer-group-metadata-N7HGHXNC.js → customer-group-metadata-FBZAMX7J.js} +9 -10
  110. package/dist/{customer-metadata-63OWV4KB.js → customer-metadata-DNCPK22Y.js} +9 -10
  111. package/dist/{customers-add-customer-group-NUXPXNUC.js → customers-add-customer-group-AJJG2XEW.js} +9 -10
  112. package/dist/{edit-inventory-item-YOJTYA7H.js → edit-inventory-item-MXA5NEWW.js} +9 -10
  113. package/dist/{edit-inventory-item-attributes-JGY633F2.js → edit-inventory-item-attributes-M2NUNSM7.js} +9 -10
  114. package/dist/{edit-reservation-ACDUXG33.js → edit-reservation-6KA372WV.js} +2 -2
  115. package/dist/{edit-rules-4VAD5Q3L.js → edit-rules-2GVJU6O7.js} +9 -10
  116. package/dist/index.js +189 -239
  117. package/dist/{inventory-create-3NJZLSFO.js → inventory-create-VIIAVANZ.js} +10 -11
  118. package/dist/{inventory-detail-B3HU2OVR.js → inventory-detail-47UAVORN.js} +10 -11
  119. package/dist/{inventory-list-AE44PEW7.js → inventory-list-2JGX6BRI.js} +2 -2
  120. package/dist/{inventory-metadata-WCFTI7AH.js → inventory-metadata-N2PZACPZ.js} +9 -10
  121. package/dist/{inventory-stock-M65W4GRN.js → inventory-stock-6JUYSL3S.js} +9 -10
  122. package/dist/{location-detail-2NCZD5MO.js → location-detail-OET2D2VX.js} +10 -11
  123. package/dist/{location-fulfillment-providers-3XKOFATD.js → location-fulfillment-providers-K6OKN6AY.js} +12 -13
  124. package/dist/{location-list-VS6V2FXE.js → location-list-YH3X5HHG.js} +9 -10
  125. package/dist/{location-sales-channels-TEUZYDTT.js → location-sales-channels-GKIWX6B2.js} +2 -2
  126. package/dist/{location-service-zone-shipping-option-create-LAM3OHBC.js → location-service-zone-shipping-option-create-FK447EYC.js} +9 -10
  127. package/dist/{login-DJWU5X5L.js → login-LTCJJFDI.js} +9 -10
  128. package/dist/{manage-locations-E2XQPKKE.js → manage-locations-TKLOHP3D.js} +1 -1
  129. package/dist/{marketplace-detail-IQLU7R3J.js → marketplace-detail-VXY6MKJS.js} +10 -11
  130. package/dist/{marketplace-metadata-7DNBHUDD.js → marketplace-metadata-KUUCCF4P.js} +9 -10
  131. package/dist/{offers-UJCSO3RD.js → offers-O4BI5PLZ.js} +2 -2
  132. package/dist/{order-allocate-items-TMVWJUV3.js → order-allocate-items-XSJ65QFV.js} +3 -3
  133. package/dist/{order-create-claim-MPSXY24H.js → order-create-claim-QWSJZUEM.js} +9 -9
  134. package/dist/{order-create-edit-6JLXERBY.js → order-create-edit-M4YFR6U7.js} +5 -5
  135. package/dist/{order-create-exchange-O6COEAGJ.js → order-create-exchange-RD7VOZSB.js} +15 -16
  136. package/dist/{order-create-fulfillment-Y4HQ5YRS.js → order-create-fulfillment-QT3QP5EE.js} +9 -10
  137. package/dist/{order-create-refund-TCNCSOMX.js → order-create-refund-XHQREMTG.js} +13 -14
  138. package/dist/{order-create-return-EVSD6GKE.js → order-create-return-EOKSXD2G.js} +10 -10
  139. package/dist/{order-create-shipment-EWOJJXEM.js → order-create-shipment-664JCOKN.js} +9 -10
  140. package/dist/{order-detail-BOW62X75.js → order-detail-QUPHQYYD.js} +16 -17
  141. package/dist/{order-edit-billing-address-VKJV3V6N.js → order-edit-billing-address-WAG2HYJP.js} +11 -12
  142. package/dist/{order-edit-email-DQJW2SAM.js → order-edit-email-BVINKRKO.js} +10 -11
  143. package/dist/{order-edit-shipping-address-RIML4XFQ.js → order-edit-shipping-address-ZC5HY26W.js} +10 -11
  144. package/dist/{order-list-U5DZYLJK.js → order-list-2PKEFG4L.js} +5 -5
  145. package/dist/{order-metadata-WGZUETFN.js → order-metadata-NI65ZEFX.js} +9 -10
  146. package/dist/{order-receive-return-MDUU4L4X.js → order-receive-return-KJPDZB5H.js} +10 -11
  147. package/dist/{order-request-transfer-QFUMEZPD.js → order-request-transfer-X7D3T6YH.js} +10 -11
  148. package/dist/pages/index.d.ts +1 -28
  149. package/dist/pages/index.js +97 -107
  150. package/dist/{price-list-configuration-O3MR5IUA.js → price-list-configuration-Q5H22ZE2.js} +2 -2
  151. package/dist/{price-list-create-J4AJG42T.js → price-list-create-W2NKRFCV.js} +15 -16
  152. package/dist/{price-list-detail-D2ETNZ5N.js → price-list-detail-6M2QQ63Q.js} +15 -16
  153. package/dist/{price-list-edit-OJAYEUYO.js → price-list-edit-YY4SXEI3.js} +2 -2
  154. package/dist/{price-list-list-ARICU2NA.js → price-list-list-OIOY43TF.js} +4 -4
  155. package/dist/{price-list-prices-add-FQLQ5DPX.js → price-list-prices-add-KGW5H7JL.js} +14 -15
  156. package/dist/{price-list-prices-edit-4HBSUC5W.js → price-list-prices-edit-GS7L2BYX.js} +9 -10
  157. package/dist/{product-add-existing-attributes-IHCIKDIH.js → product-add-existing-attributes-3Q2LGRQO.js} +54 -18
  158. package/dist/{product-attributes-ZURXNZ3J.js → product-attributes-C3KHQF2I.js} +1 -1
  159. package/dist/{product-bulk-edit-LHCPVFUX.js → product-bulk-edit-J3CMBZN2.js} +1 -1
  160. package/dist/{product-create-TRJMKG2C.js → product-create-3WA2FHND.js} +14 -15
  161. package/dist/{product-create-attribute-UBWABT2Q.js → product-create-attribute-XARMC6FJ.js} +72 -44
  162. package/dist/{product-create-variant-MVYZPDO7.js → product-create-variant-6VUKYLWE.js} +4 -4
  163. package/dist/{product-detail-I57XSYLB.js → product-detail-OKHNAVKL.js} +11 -12
  164. package/dist/{product-edit-EDW3D2KW.js → product-edit-F4CKOIUO.js} +1 -1
  165. package/dist/product-edit-attribute-LG2ZM6HQ.js +175 -0
  166. package/dist/{product-list-PR532XII.js → product-list-OEM73MI2.js} +14 -15
  167. package/dist/{product-media-Y2KHDPMI.js → product-media-PKIQO5ZS.js} +3 -3
  168. package/dist/{product-metadata-T2D4GEIP.js → product-metadata-HMRYPUVS.js} +9 -10
  169. package/dist/{product-organization-D6UMZAUE.js → product-organization-BFWDCHP4.js} +3 -46
  170. package/dist/{product-sales-channels-NTT6KMSD.js → product-sales-channels-WKQSYOEX.js} +2 -2
  171. package/dist/{product-shipping-profile-WM7LORFB.js → product-shipping-profile-WDLKA2SN.js} +1 -1
  172. package/dist/{product-tag-create-47G425O2.js → product-tag-create-JPRBCLRG.js} +9 -10
  173. package/dist/{product-tag-detail-VNGOBWYE.js → product-tag-detail-KAVDX34C.js} +17 -18
  174. package/dist/{product-tag-edit-DN7IVL75.js → product-tag-edit-HZSUOL64.js} +9 -10
  175. package/dist/{product-tag-list-ZGRJZT2U.js → product-tag-list-FECZ4YS2.js} +17 -18
  176. package/dist/{product-tag-metadata-YLDBRJMI.js → product-tag-metadata-YP4SOBCH.js} +9 -10
  177. package/dist/{product-type-detail-MPONGCVO.js → product-type-detail-BWAJ2JO5.js} +14 -15
  178. package/dist/{product-type-metadata-TDAER7JD.js → product-type-metadata-EJOBRGZ6.js} +9 -10
  179. package/dist/{product-variant-detail-5BF6JTHV.js → product-variant-detail-VXWES7XS.js} +10 -11
  180. package/dist/{product-variant-edit-2RHFG2CZ.js → product-variant-edit-XH4R6M3D.js} +11 -12
  181. package/dist/{product-variant-metadata-G2LLH7YK.js → product-variant-metadata-Y6SO5UJI.js} +9 -10
  182. package/dist/{promotion-create-G3M4UJX2.js → promotion-create-7HDNJF2T.js} +11 -12
  183. package/dist/{promotion-detail-6D6CP457.js → promotion-detail-KTPZUDXT.js} +12 -13
  184. package/dist/{promotion-list-TCRTBVR6.js → promotion-list-SSWK44YZ.js} +4 -4
  185. package/dist/{refund-reason-create-6RPQHIJI.js → refund-reason-create-XDJFPVZL.js} +9 -10
  186. package/dist/{refund-reason-edit-W2TVZB3N.js → refund-reason-edit-VI5DSC7T.js} +9 -10
  187. package/dist/{refund-reason-list-TS6JWYS4.js → refund-reason-list-3PYLHTJZ.js} +14 -15
  188. package/dist/{region-metadata-TNSJDCBM.js → region-metadata-6RR2SU5H.js} +9 -10
  189. package/dist/{reservation-create-2TDZAX5A.js → reservation-create-LRSOJH6K.js} +2 -2
  190. package/dist/{reservation-detail-KFOVTTFH.js → reservation-detail-L4B27AVM.js} +10 -11
  191. package/dist/{reservation-list-K4RPXJTO.js → reservation-list-YWCTHZUL.js} +3 -3
  192. package/dist/{reservation-metadata-HBFAVVPW.js → reservation-metadata-W6IYXGPB.js} +9 -10
  193. package/dist/{reset-password-7UH4IQ6R.js → reset-password-EBZ65YXV.js} +1 -1
  194. package/dist/{return-reason-list-WBLPUYD4.js → return-reason-list-74IYCLLS.js} +5 -5
  195. package/dist/{sales-channel-add-products-IHGDKRKH.js → sales-channel-add-products-6UPTDZPP.js} +13 -14
  196. package/dist/{sales-channel-create-MPZCRQBT.js → sales-channel-create-XBR3QESI.js} +2 -2
  197. package/dist/{sales-channel-detail-QCFO7VUA.js → sales-channel-detail-H6XNWIK6.js} +14 -15
  198. package/dist/{sales-channel-edit-GILK4QK3.js → sales-channel-edit-ILBZBQP4.js} +2 -2
  199. package/dist/{sales-channel-list-YNHR5EHL.js → sales-channel-list-VA2OASCG.js} +10 -11
  200. package/dist/{sales-channel-metadata-OEQVWJRQ.js → sales-channel-metadata-ILMPQGG3.js} +9 -10
  201. package/dist/{shipping-option-type-create-SMXDCF6I.js → shipping-option-type-create-6JJFI3KO.js} +9 -10
  202. package/dist/{shipping-option-type-detail-MO3YRUVR.js → shipping-option-type-detail-QOQ4EE2K.js} +11 -12
  203. package/dist/{shipping-option-type-edit-KO64TZS6.js → shipping-option-type-edit-OQWZ7PWX.js} +9 -10
  204. package/dist/{shipping-option-type-list-6C26GWDM.js → shipping-option-type-list-YRDWTDMK.js} +11 -12
  205. package/dist/{shipping-profile-metadata-FLTMLAZN.js → shipping-profile-metadata-TFG6BEVX.js} +9 -10
  206. package/dist/{store-bulk-edit-LW6ABDJK.js → store-bulk-edit-BNF3HH5K.js} +1 -1
  207. package/dist/{store-create-STR6YNFJ.js → store-create-MIMJEBST.js} +9 -10
  208. package/dist/{store-details-3U4OEFWC.js → store-details-TGB2GFLX.js} +16 -17
  209. package/dist/{store-edit-KBFFB2DI.js → store-edit-XNZRRLYY.js} +3 -3
  210. package/dist/{store-list-PJ3U254I.js → store-list-BLXUWEG3.js} +14 -15
  211. package/dist/{store-member-invite-AKH3KHMF.js → store-member-invite-J5XSPWMW.js} +1 -1
  212. package/dist/{tax-region-create-I2ZGT2PH.js → tax-region-create-FN4W4SQK.js} +10 -11
  213. package/dist/{tax-region-detail-LVN5XSN5.js → tax-region-detail-XN4P6VR5.js} +11 -12
  214. package/dist/{tax-region-edit-4PJV5F5X.js → tax-region-edit-RCGY5D3G.js} +9 -10
  215. package/dist/{tax-region-metadata-EYRFMJLL.js → tax-region-metadata-NKJXZ4SR.js} +9 -10
  216. package/dist/{tax-region-province-detail-MTHKW7LW.js → tax-region-province-detail-L2TWOQ7H.js} +11 -12
  217. package/dist/{tax-region-tax-override-create-OGW3MPBD.js → tax-region-tax-override-create-767T73RO.js} +16 -17
  218. package/dist/{tax-region-tax-override-edit-LTZCYN4Y.js → tax-region-tax-override-edit-T2BK7ZPA.js} +16 -17
  219. package/dist/{user-detail-2OTVNTCL.js → user-detail-MMVBN3AE.js} +1 -1
  220. package/dist/{user-metadata-GIR3A7WO.js → user-metadata-IZCJT3N5.js} +9 -10
  221. package/package.json +1 -1
  222. package/dist/chunk-DDANJIE7.js +0 -207
  223. package/dist/chunk-J65IXAGI.js +0 -292
  224. package/dist/chunk-V5XHY5LP.js +0 -39
  225. package/dist/chunk-ZZ3XFIEM.js +0 -84
  226. package/dist/product-brand-create-B3ZJGHUQ.js +0 -171
  227. package/dist/product-brand-detail-O7UKYV4H.js +0 -100
  228. package/dist/product-brand-edit-3TQDHZNN.js +0 -179
  229. package/dist/product-brand-list-ZBPBSRQN.js +0 -30
  230. package/dist/product-brand-metadata-N2CJ5K3Z.js +0 -87
  231. package/dist/{chunk-DV7QV3X2.js → chunk-XODBX3LN.js} +3 -3
@@ -1,171 +0,0 @@
1
- import {
2
- HandleInput
3
- } from "./chunk-HJ56YXBU.js";
4
- import "./chunk-TKGWSUEI.js";
5
- import {
6
- KeyboundForm
7
- } from "./chunk-U2ZFCAPX.js";
8
- import {
9
- RouteFocusModal,
10
- useRouteModal
11
- } from "./chunk-FWJLS7XD.js";
12
- import {
13
- Form
14
- } from "./chunk-3QSRE5LS.js";
15
- import {
16
- useCreateProductBrand
17
- } from "./chunk-ZZ3XFIEM.js";
18
- import "./chunk-RHKRREUU.js";
19
- import "./chunk-ZA2KFUFR.js";
20
- import "./chunk-ZBWL72TB.js";
21
- import "./chunk-NBMM2TZK.js";
22
-
23
- // src/pages/product-brands/product-brand-create/components/create-product-brand-form/create-product-brand-form.tsx
24
- import { zodResolver } from "@hookform/resolvers/zod";
25
- import { Button, Heading, Input, Text, toast } from "@medusajs/ui";
26
- import { useForm } from "react-hook-form";
27
- import { useTranslation } from "react-i18next";
28
- import { z } from "zod";
29
- import { jsx, jsxs } from "react/jsx-runtime";
30
- var CreateProductBrandSchema = z.object({
31
- name: z.string().min(1),
32
- handle: z.string().optional()
33
- });
34
- var CreateProductBrandForm = () => {
35
- const { t } = useTranslation();
36
- const { handleSuccess } = useRouteModal();
37
- const form = useForm({
38
- defaultValues: {
39
- name: "",
40
- handle: ""
41
- },
42
- resolver: zodResolver(CreateProductBrandSchema)
43
- });
44
- const { mutateAsync, isPending } = useCreateProductBrand();
45
- const handleSubmit = form.handleSubmit(
46
- async (values) => {
47
- await mutateAsync(
48
- {
49
- name: values.name,
50
- handle: values.handle ? values.handle : void 0
51
- },
52
- {
53
- onSuccess: ({ product_brand }) => {
54
- toast.success(
55
- t("productBrands.create.successToast", {
56
- name: product_brand.name.trim()
57
- })
58
- );
59
- handleSuccess(`/settings/product-brands/${product_brand.id}`);
60
- },
61
- onError: (e) => {
62
- toast.error(e.message);
63
- }
64
- }
65
- );
66
- }
67
- );
68
- return /* @__PURE__ */ jsx(RouteFocusModal.Form, { form, "data-testid": "product-brand-create-form", children: /* @__PURE__ */ jsxs(KeyboundForm, { onSubmit: handleSubmit, className: "flex h-full flex-col", children: [
69
- /* @__PURE__ */ jsx(
70
- RouteFocusModal.Body,
71
- {
72
- className: "flex flex-col items-center overflow-auto p-16",
73
- "data-testid": "product-brand-create-form-body",
74
- children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-8", children: [
75
- /* @__PURE__ */ jsxs("div", { "data-testid": "product-brand-create-form-header-section", children: [
76
- /* @__PURE__ */ jsx(Heading, { "data-testid": "product-brand-create-form-heading", children: t("productBrands.create.header") }),
77
- /* @__PURE__ */ jsx(
78
- Text,
79
- {
80
- size: "small",
81
- className: "text-ui-fg-subtle",
82
- "data-testid": "product-brand-create-form-hint",
83
- children: t("productBrands.create.hint")
84
- }
85
- )
86
- ] }),
87
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", children: [
88
- /* @__PURE__ */ jsx(
89
- Form.Field,
90
- {
91
- control: form.control,
92
- name: "name",
93
- render: ({ field }) => {
94
- return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-brand-create-form-name-item", children: [
95
- /* @__PURE__ */ jsx(Form.Label, { "data-testid": "product-brand-create-form-name-label", children: t("fields.name") }),
96
- /* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-brand-create-form-name-control", children: /* @__PURE__ */ jsx(
97
- Input,
98
- {
99
- ...field,
100
- "data-testid": "product-brand-create-form-name-input"
101
- }
102
- ) }),
103
- /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-brand-create-form-name-error" })
104
- ] });
105
- }
106
- }
107
- ),
108
- /* @__PURE__ */ jsx(
109
- Form.Field,
110
- {
111
- control: form.control,
112
- name: "handle",
113
- render: ({ field }) => {
114
- return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-brand-create-form-handle-item", children: [
115
- /* @__PURE__ */ jsx(
116
- Form.Label,
117
- {
118
- optional: true,
119
- "data-testid": "product-brand-create-form-handle-label",
120
- children: t("fields.handle")
121
- }
122
- ),
123
- /* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-brand-create-form-handle-control", children: /* @__PURE__ */ jsx(
124
- HandleInput,
125
- {
126
- ...field,
127
- "data-testid": "product-brand-create-form-handle-input"
128
- }
129
- ) }),
130
- /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-brand-create-form-handle-error" })
131
- ] });
132
- }
133
- }
134
- )
135
- ] })
136
- ] })
137
- }
138
- ),
139
- /* @__PURE__ */ jsx(RouteFocusModal.Footer, { "data-testid": "product-brand-create-form-footer", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
140
- /* @__PURE__ */ jsx(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx(
141
- Button,
142
- {
143
- size: "small",
144
- variant: "secondary",
145
- "data-testid": "product-brand-create-form-cancel-button",
146
- children: t("actions.cancel")
147
- }
148
- ) }),
149
- /* @__PURE__ */ jsx(
150
- Button,
151
- {
152
- size: "small",
153
- variant: "primary",
154
- type: "submit",
155
- isLoading: isPending,
156
- "data-testid": "product-brand-create-form-create-button",
157
- children: t("actions.create")
158
- }
159
- )
160
- ] }) })
161
- ] }) });
162
- };
163
-
164
- // src/pages/product-brands/product-brand-create/product-brand-create.tsx
165
- import { jsx as jsx2 } from "react/jsx-runtime";
166
- var ProductBrandCreate = () => {
167
- return /* @__PURE__ */ jsx2(RouteFocusModal, { "data-testid": "product-brand-create-modal", children: /* @__PURE__ */ jsx2(CreateProductBrandForm, {}) });
168
- };
169
- export {
170
- ProductBrandCreate as Component
171
- };
@@ -1,100 +0,0 @@
1
- import {
2
- ProductBrandDetailPage
3
- } from "./chunk-DDANJIE7.js";
4
- import "./chunk-V5XHY5LP.js";
5
- import "./chunk-6NDM5WGE.js";
6
- import "./chunk-UKDC2AQR.js";
7
- import "./chunk-NMFVQDVF.js";
8
- import "./chunk-FWPGOIFA.js";
9
- import "./chunk-LYZDVZWA.js";
10
- import "./chunk-DB6ANJBO.js";
11
- import "./chunk-PHOCVOZ5.js";
12
- import "./chunk-FQERBIVS.js";
13
- import "./chunk-NQEXDLYH.js";
14
- import "./chunk-YN3FGNJM.js";
15
- import "./chunk-KAZ5BYTQ.js";
16
- import "./chunk-634XVU3D.js";
17
- import "./chunk-E74OUNA3.js";
18
- import "./chunk-WIYFXWRI.js";
19
- import "./chunk-H6MYB7GB.js";
20
- import "./chunk-UZWFZMOX.js";
21
- import "./chunk-XQNVC4Q7.js";
22
- import "./chunk-F5H5JZQZ.js";
23
- import "./chunk-THHRRYRS.js";
24
- import "./chunk-46A3QXAL.js";
25
- import "./chunk-OH4AABUT.js";
26
- import "./chunk-AEMDNTW5.js";
27
- import "./chunk-LYD3C73Z.js";
28
- import {
29
- productBrandsQueryKeys,
30
- useProductBrand
31
- } from "./chunk-ZZ3XFIEM.js";
32
- import "./chunk-4RT7P5ZQ.js";
33
- import "./chunk-533GMKEG.js";
34
- import "./chunk-46M463BR.js";
35
- import "./chunk-YFRC6GEN.js";
36
- import "./chunk-JPNPTILP.js";
37
- import "./chunk-DAXXLQKB.js";
38
- import "./chunk-OHOWEMHO.js";
39
- import "./chunk-GKGLVDDV.js";
40
- import "./chunk-ESPLVOFC.js";
41
- import "./chunk-N6SI4IIT.js";
42
- import "./chunk-WJJXUXSO.js";
43
- import "./chunk-LAPEZATU.js";
44
- import "./chunk-2ZRWLCYP.js";
45
- import "./chunk-E5WBU7ZR.js";
46
- import "./chunk-FXWKGNRV.js";
47
- import "./chunk-VDKOJ5WD.js";
48
- import "./chunk-ZN7LWXVC.js";
49
- import "./chunk-5TRY5IMZ.js";
50
- import "./chunk-EPHVGD5Z.js";
51
- import "./chunk-N3BYBEDV.js";
52
- import "./chunk-ZB4SO44T.js";
53
- import "./chunk-VYMODH6P.js";
54
- import "./chunk-LEG67A2R.js";
55
- import "./chunk-PRBE5CM3.js";
56
- import "./chunk-BDGZ4EQO.js";
57
- import "./chunk-FEC24V7X.js";
58
- import "./chunk-EB5QHYKL.js";
59
- import "./chunk-LAVHRER2.js";
60
- import "./chunk-Y7QKP6QU.js";
61
- import "./chunk-INNFZYX2.js";
62
- import "./chunk-ZRFWXNT3.js";
63
- import {
64
- queryClient
65
- } from "./chunk-RHKRREUU.js";
66
- import "./chunk-ZA2KFUFR.js";
67
- import {
68
- sdk
69
- } from "./chunk-ZBWL72TB.js";
70
- import "./chunk-NBMM2TZK.js";
71
-
72
- // src/pages/product-brands/product-brand-detail/breadcrumb.tsx
73
- import { jsx } from "react/jsx-runtime";
74
- var ProductBrandDetailBreadcrumb = (props) => {
75
- const { id } = props.params || {};
76
- const { product_brand } = useProductBrand(id, void 0, {
77
- initialData: props.data,
78
- enabled: Boolean(id)
79
- });
80
- if (!product_brand) {
81
- return null;
82
- }
83
- return /* @__PURE__ */ jsx("span", { children: product_brand.name });
84
- };
85
-
86
- // src/pages/product-brands/product-brand-detail/loader.ts
87
- var productBrandDetailQuery = (id) => ({
88
- queryKey: productBrandsQueryKeys.detail(id),
89
- queryFn: async () => sdk.admin.productBrands.$id.query({ $id: id })
90
- });
91
- var productBrandLoader = async ({ params }) => {
92
- const id = params.id;
93
- const query = productBrandDetailQuery(id);
94
- return queryClient.ensureQueryData(query);
95
- };
96
- export {
97
- ProductBrandDetailBreadcrumb as Breadcrumb,
98
- ProductBrandDetailPage as Component,
99
- productBrandLoader as loader
100
- };
@@ -1,179 +0,0 @@
1
- import {
2
- HandleInput
3
- } from "./chunk-HJ56YXBU.js";
4
- import "./chunk-TKGWSUEI.js";
5
- import {
6
- KeyboundForm
7
- } from "./chunk-U2ZFCAPX.js";
8
- import {
9
- RouteDrawer,
10
- useRouteModal
11
- } from "./chunk-FWJLS7XD.js";
12
- import {
13
- Form
14
- } from "./chunk-3QSRE5LS.js";
15
- import {
16
- useProductBrand,
17
- useUpdateProductBrand
18
- } from "./chunk-ZZ3XFIEM.js";
19
- import "./chunk-RHKRREUU.js";
20
- import "./chunk-ZA2KFUFR.js";
21
- import "./chunk-ZBWL72TB.js";
22
- import "./chunk-NBMM2TZK.js";
23
-
24
- // src/pages/product-brands/product-brand-edit/product-brand-edit.tsx
25
- import { Heading } from "@medusajs/ui";
26
- import { useTranslation as useTranslation2 } from "react-i18next";
27
- import { useParams } from "react-router-dom";
28
-
29
- // src/pages/product-brands/product-brand-edit/components/edit-product-brand-form/edit-product-brand-form.tsx
30
- import { zodResolver } from "@hookform/resolvers/zod";
31
- import { Button, Input, toast } from "@medusajs/ui";
32
- import { useForm } from "react-hook-form";
33
- import { useTranslation } from "react-i18next";
34
- import { z } from "zod";
35
- import { jsx, jsxs } from "react/jsx-runtime";
36
- var EditProductBrandSchema = z.object({
37
- name: z.string().min(1),
38
- handle: z.string().optional()
39
- });
40
- var EditProductBrandForm = ({
41
- productBrand
42
- }) => {
43
- const { t } = useTranslation();
44
- const { handleSuccess } = useRouteModal();
45
- const form = useForm({
46
- defaultValues: {
47
- name: productBrand.name,
48
- handle: productBrand.handle
49
- },
50
- resolver: zodResolver(EditProductBrandSchema)
51
- });
52
- const { mutateAsync, isPending } = useUpdateProductBrand(productBrand.id);
53
- const handleSubmit = form.handleSubmit(async (data) => {
54
- await mutateAsync(
55
- {
56
- name: data.name,
57
- handle: data.handle ? data.handle : void 0
58
- },
59
- {
60
- onSuccess: ({ product_brand }) => {
61
- toast.success(
62
- t("productBrands.edit.successToast", {
63
- name: product_brand.name
64
- })
65
- );
66
- handleSuccess();
67
- },
68
- onError: (error) => {
69
- toast.error(error.message);
70
- }
71
- }
72
- );
73
- });
74
- return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, "data-testid": "product-brand-edit-form", children: /* @__PURE__ */ jsxs(
75
- KeyboundForm,
76
- {
77
- onSubmit: handleSubmit,
78
- className: "flex flex-1 flex-col overflow-hidden",
79
- children: [
80
- /* @__PURE__ */ jsxs(
81
- RouteDrawer.Body,
82
- {
83
- className: "flex flex-1 flex-col gap-y-8 overflow-y-auto",
84
- "data-testid": "product-brand-edit-form-body",
85
- children: [
86
- /* @__PURE__ */ jsx(
87
- Form.Field,
88
- {
89
- control: form.control,
90
- name: "name",
91
- render: ({ field }) => {
92
- return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-brand-edit-form-name-item", children: [
93
- /* @__PURE__ */ jsx(Form.Label, { "data-testid": "product-brand-edit-form-name-label", children: t("fields.name") }),
94
- /* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-brand-edit-form-name-control", children: /* @__PURE__ */ jsx(
95
- Input,
96
- {
97
- ...field,
98
- "data-testid": "product-brand-edit-form-name-input"
99
- }
100
- ) }),
101
- /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-brand-edit-form-name-error" })
102
- ] });
103
- }
104
- }
105
- ),
106
- /* @__PURE__ */ jsx(
107
- Form.Field,
108
- {
109
- control: form.control,
110
- name: "handle",
111
- render: ({ field }) => {
112
- return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-brand-edit-form-handle-item", children: [
113
- /* @__PURE__ */ jsx(
114
- Form.Label,
115
- {
116
- optional: true,
117
- "data-testid": "product-brand-edit-form-handle-label",
118
- children: t("fields.handle")
119
- }
120
- ),
121
- /* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-brand-edit-form-handle-control", children: /* @__PURE__ */ jsx(
122
- HandleInput,
123
- {
124
- ...field,
125
- "data-testid": "product-brand-edit-form-handle-input"
126
- }
127
- ) }),
128
- /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-brand-edit-form-handle-error" })
129
- ] });
130
- }
131
- }
132
- )
133
- ]
134
- }
135
- ),
136
- /* @__PURE__ */ jsx(RouteDrawer.Footer, { "data-testid": "product-brand-edit-form-footer", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
137
- /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(
138
- Button,
139
- {
140
- size: "small",
141
- variant: "secondary",
142
- "data-testid": "product-brand-edit-form-cancel-button",
143
- children: t("actions.cancel")
144
- }
145
- ) }),
146
- /* @__PURE__ */ jsx(
147
- Button,
148
- {
149
- size: "small",
150
- type: "submit",
151
- isLoading: isPending,
152
- "data-testid": "product-brand-edit-form-save-button",
153
- children: t("actions.save")
154
- }
155
- )
156
- ] }) })
157
- ]
158
- }
159
- ) });
160
- };
161
-
162
- // src/pages/product-brands/product-brand-edit/product-brand-edit.tsx
163
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
164
- var ProductBrandEdit = () => {
165
- const { id } = useParams();
166
- const { t } = useTranslation2();
167
- const { product_brand, isPending, isError, error } = useProductBrand(id);
168
- const ready = !isPending && !!product_brand;
169
- if (isError) {
170
- throw error;
171
- }
172
- return /* @__PURE__ */ jsxs2(RouteDrawer, { "data-testid": "product-brand-edit-drawer", children: [
173
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { "data-testid": "product-brand-edit-drawer-header", children: /* @__PURE__ */ jsx2(Heading, { "data-testid": "product-brand-edit-drawer-heading", children: t("productBrands.edit.header") }) }),
174
- ready && /* @__PURE__ */ jsx2(EditProductBrandForm, { productBrand: product_brand })
175
- ] });
176
- };
177
- export {
178
- ProductBrandEdit as Component
179
- };
@@ -1,30 +0,0 @@
1
- import {
2
- ProductBrandListPage
3
- } from "./chunk-J65IXAGI.js";
4
- import "./chunk-V5XHY5LP.js";
5
- import "./chunk-26OOAKQ6.js";
6
- import "./chunk-25LYVP3C.js";
7
- import "./chunk-JHIMVLB2.js";
8
- import "./chunk-PHOCVOZ5.js";
9
- import "./chunk-FQERBIVS.js";
10
- import "./chunk-NQEXDLYH.js";
11
- import "./chunk-YN3FGNJM.js";
12
- import "./chunk-KAZ5BYTQ.js";
13
- import "./chunk-634XVU3D.js";
14
- import "./chunk-E74OUNA3.js";
15
- import "./chunk-H6MYB7GB.js";
16
- import "./chunk-UZWFZMOX.js";
17
- import "./chunk-XQNVC4Q7.js";
18
- import "./chunk-THHRRYRS.js";
19
- import "./chunk-ZZ3XFIEM.js";
20
- import "./chunk-BDGZ4EQO.js";
21
- import "./chunk-LAVHRER2.js";
22
- import "./chunk-Y7QKP6QU.js";
23
- import "./chunk-INNFZYX2.js";
24
- import "./chunk-RHKRREUU.js";
25
- import "./chunk-ZA2KFUFR.js";
26
- import "./chunk-ZBWL72TB.js";
27
- import "./chunk-NBMM2TZK.js";
28
- export {
29
- ProductBrandListPage as Component
30
- };
@@ -1,87 +0,0 @@
1
- import {
2
- MetadataForm
3
- } from "./chunk-WYA62MUL.js";
4
- import "./chunk-TKGWSUEI.js";
5
- import "./chunk-U2ZFCAPX.js";
6
- import "./chunk-FWJLS7XD.js";
7
- import "./chunk-3QSRE5LS.js";
8
- import "./chunk-46A3QXAL.js";
9
- import "./chunk-OH4AABUT.js";
10
- import "./chunk-AEMDNTW5.js";
11
- import "./chunk-LYD3C73Z.js";
12
- import {
13
- useProductBrand,
14
- useUpdateProductBrand
15
- } from "./chunk-ZZ3XFIEM.js";
16
- import "./chunk-4RT7P5ZQ.js";
17
- import "./chunk-533GMKEG.js";
18
- import "./chunk-46M463BR.js";
19
- import "./chunk-YFRC6GEN.js";
20
- import "./chunk-JPNPTILP.js";
21
- import "./chunk-DAXXLQKB.js";
22
- import "./chunk-OHOWEMHO.js";
23
- import "./chunk-GKGLVDDV.js";
24
- import "./chunk-ESPLVOFC.js";
25
- import "./chunk-N6SI4IIT.js";
26
- import "./chunk-WJJXUXSO.js";
27
- import "./chunk-LAPEZATU.js";
28
- import "./chunk-2ZRWLCYP.js";
29
- import "./chunk-E5WBU7ZR.js";
30
- import "./chunk-FXWKGNRV.js";
31
- import "./chunk-VDKOJ5WD.js";
32
- import "./chunk-ZN7LWXVC.js";
33
- import "./chunk-5TRY5IMZ.js";
34
- import "./chunk-EPHVGD5Z.js";
35
- import "./chunk-N3BYBEDV.js";
36
- import "./chunk-ZB4SO44T.js";
37
- import "./chunk-VYMODH6P.js";
38
- import "./chunk-LEG67A2R.js";
39
- import "./chunk-PRBE5CM3.js";
40
- import "./chunk-FEC24V7X.js";
41
- import "./chunk-EB5QHYKL.js";
42
- import "./chunk-LAVHRER2.js";
43
- import "./chunk-Y7QKP6QU.js";
44
- import "./chunk-INNFZYX2.js";
45
- import "./chunk-ZRFWXNT3.js";
46
- import "./chunk-RHKRREUU.js";
47
- import "./chunk-ZA2KFUFR.js";
48
- import "./chunk-ZBWL72TB.js";
49
- import "./chunk-NBMM2TZK.js";
50
-
51
- // src/pages/product-brands/product-brand-metadata/product-brand-metadata.tsx
52
- import { useParams } from "react-router-dom";
53
- import { ClientError } from "@mercurjs/client";
54
- import { jsx } from "react/jsx-runtime";
55
- var ProductBrandMetadata = () => {
56
- const { id } = useParams();
57
- const { product_brand, isPending, isError, error } = useProductBrand(id);
58
- const { mutateAsync, isPending: isMutating } = useUpdateProductBrand(id);
59
- if (isError) {
60
- throw error;
61
- }
62
- const handleSubmit = async (params, callbacks) => {
63
- try {
64
- const result = await mutateAsync({
65
- metadata: params.metadata === void 0 ? void 0 : params.metadata
66
- });
67
- callbacks.onSuccess?.();
68
- return result;
69
- } catch (error2) {
70
- const message = error2 instanceof ClientError ? error2.message : "An error occurred";
71
- callbacks.onError?.(message);
72
- throw error2;
73
- }
74
- };
75
- return /* @__PURE__ */ jsx(
76
- MetadataForm,
77
- {
78
- metadata: product_brand?.metadata,
79
- hook: handleSubmit,
80
- isPending,
81
- isMutating
82
- }
83
- );
84
- };
85
- export {
86
- ProductBrandMetadata as Component
87
- };
@@ -1,3 +1,6 @@
1
+ import {
2
+ DeprecatedPercentageInput
3
+ } from "./chunk-MAEP2UCK.js";
1
4
  import {
2
5
  AddCampaignPromotionFields
3
6
  } from "./chunk-FB7DDNCA.js";
@@ -8,9 +11,6 @@ import {
8
11
  CreateCampaignSchema,
9
12
  DEFAULT_CAMPAIGN_VALUES
10
13
  } from "./chunk-NUC27ELX.js";
11
- import {
12
- DeprecatedPercentageInput
13
- } from "./chunk-MAEP2UCK.js";
14
14
  import {
15
15
  TabbedForm,
16
16
  defineTabMeta,