@mercurjs/admin 2.0.2 → 2.1.0-canary.5

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 (351) hide show
  1. package/dist/{add-campaign-promotions-TA7QC32P.js → add-campaign-promotions-LE2WUOTX.js} +6 -6
  2. package/dist/{adjust-inventory-W4H5F2JA.js → adjust-inventory-TCBV3PCL.js} +33 -32
  3. package/dist/{api-key-management-create-FPBZMDBI.js → api-key-management-create-THDCXGWK.js} +5 -5
  4. package/dist/{api-key-management-detail-LMKKDTRJ.js → api-key-management-detail-LH3I7OZB.js} +34 -33
  5. package/dist/{api-key-management-edit-5EM4NJIM.js → api-key-management-edit-LTVNXP6T.js} +5 -5
  6. package/dist/{api-key-management-list-MRKJVQMI.js → api-key-management-list-4MCSXO5L.js} +5 -5
  7. package/dist/{api-key-management-sales-channels-AETOWQYM.js → api-key-management-sales-channels-SCIDNYW5.js} +5 -5
  8. package/dist/{attribute-create-IRJTPQCF.js → attribute-create-CJBFOEGI.js} +33 -32
  9. package/dist/{attribute-create-possible-value-RG4VA2DG.js → attribute-create-possible-value-BIU2L7AN.js} +3 -3
  10. package/dist/{attribute-detail-7FLCTP3I.js → attribute-detail-2RDAGHQB.js} +32 -31
  11. package/dist/{attribute-edit-6YNHG3QV.js → attribute-edit-TDMQJYAP.js} +36 -35
  12. package/dist/{attribute-edit-possible-value-IBJA53MJ.js → attribute-edit-possible-value-G2ON2AE3.js} +6 -6
  13. package/dist/{attribute-edit-ranking-BLMESGR5.js → attribute-edit-ranking-CEBR5LJ7.js} +3 -3
  14. package/dist/attribute-list-MK2EUELY.js +64 -0
  15. package/dist/{campaign-budget-edit-PL7DTWCM.js → campaign-budget-edit-WKSYXTBX.js} +3 -3
  16. package/dist/{campaign-configuration-D6ROERRH.js → campaign-configuration-ZTK46EB5.js} +3 -3
  17. package/dist/{campaign-create-LABYKFMI.js → campaign-create-QFNB5XZ2.js} +7 -7
  18. package/dist/{campaign-detail-E37P67AC.js → campaign-detail-GVJ3PO4I.js} +36 -35
  19. package/dist/{campaign-edit-PMJMUUDW.js → campaign-edit-ZGLDY4X4.js} +3 -3
  20. package/dist/{campaign-list-B42U6XNF.js → campaign-list-TXTMGE6H.js} +3 -3
  21. package/dist/{categories-metadata-34L5C2TK.js → categories-metadata-M3GDS27H.js} +34 -33
  22. package/dist/{category-create-AMHFSXJI.js → category-create-5WS4XGYI.js} +6 -6
  23. package/dist/{category-detail-B23F726Q.js → category-detail-TTJ6XGLM.js} +35 -34
  24. package/dist/{category-edit-VZL6ROLF.js → category-edit-GOB4ASBP.js} +4 -4
  25. package/dist/{category-list-R66T472I.js → category-list-DVDOBE7O.js} +5 -5
  26. package/dist/{category-organize-CLCNXQSJ.js → category-organize-NCH6A57L.js} +4 -4
  27. package/dist/{category-products-2LKOHEWO.js → category-products-NRPWJHDW.js} +34 -33
  28. package/dist/{chunk-DKA6GR53.js → chunk-2ASJQTGT.js} +1 -1
  29. package/dist/{chunk-YVCBMOJG.js → chunk-2EME4AWX.js} +1 -1
  30. package/dist/{chunk-T7MQFDTF.js → chunk-2FGRDEAD.js} +1 -1
  31. package/dist/{chunk-M3YP3NX4.js → chunk-2FLBJM53.js} +58 -33
  32. package/dist/{chunk-AG4ORND4.js → chunk-2KWNTJGL.js} +2 -2
  33. package/dist/{chunk-ZDZYRCVH.js → chunk-33BERJSG.js} +1 -1
  34. package/dist/{chunk-VXPWOEUS.js → chunk-34I4QIBD.js} +1 -1
  35. package/dist/{chunk-ZCLF2O6X.js → chunk-36NDTZIV.js} +1 -1
  36. package/dist/{chunk-IAT6UDKU.js → chunk-3BBG3LC3.js} +1 -1
  37. package/dist/{chunk-TCA3ZYNO.js → chunk-3CU7XPUR.js} +2 -2
  38. package/dist/{chunk-EI6JBJYB.js → chunk-3IN6MMKV.js} +3 -3
  39. package/dist/{chunk-XIHVSZ6I.js → chunk-3UZVMGC6.js} +1 -1
  40. package/dist/{chunk-5PUHROK4.js → chunk-46M463BR.js} +1 -1
  41. package/dist/{chunk-KA3VYXNA.js → chunk-4LXBQTFN.js} +1 -1
  42. package/dist/{chunk-BA2HXHTW.js → chunk-5CK6XEFV.js} +1 -1
  43. package/dist/{chunk-O4STPJR2.js → chunk-5TRY5IMZ.js} +2 -2
  44. package/dist/{chunk-EVGVH6CU.js → chunk-5XENZ4RY.js} +12 -12
  45. package/dist/{chunk-5VMJCLUP.js → chunk-6MJ5HPIP.js} +4 -4
  46. package/dist/{chunk-J555HFHV.js → chunk-6SND23WS.js} +2 -2
  47. package/dist/{chunk-U3OWJE7V.js → chunk-72Q2T2FK.js} +126 -45
  48. package/dist/{chunk-J24SOKSP.js → chunk-73JXHNUH.js} +3 -3
  49. package/dist/{chunk-XMVTX2EN.js → chunk-7O5NDICV.js} +1 -1
  50. package/dist/{chunk-SDPR7PGR.js → chunk-7URRKQIX.js} +1 -1
  51. package/dist/{chunk-4G5FEKRO.js → chunk-A3HOLGBF.js} +1 -1
  52. package/dist/{chunk-CBHNHLUZ.js → chunk-AEMDNTW5.js} +2 -2
  53. package/dist/{chunk-JSBQOQXC.js → chunk-AGB4RMSE.js} +1 -1
  54. package/dist/{chunk-SDQ6V2QY.js → chunk-ANHC5MBQ.js} +3 -3
  55. package/dist/{chunk-ZMDE5HEV.js → chunk-AQANSGTS.js} +107 -49
  56. package/dist/{chunk-UBTAADSY.js → chunk-ARMMSJ7L.js} +4 -4
  57. package/dist/{chunk-MMTCBVUV.js → chunk-AVUWXDRQ.js} +3 -3
  58. package/dist/{chunk-CGVHXNWH.js → chunk-AVW3A7X5.js} +2 -2
  59. package/dist/{chunk-22XJUSMM.js → chunk-B6FG7A6W.js} +2 -2
  60. package/dist/{chunk-G4LGZF5F.js → chunk-BH5LSB6O.js} +4 -4
  61. package/dist/{chunk-TBREETGZ.js → chunk-BJFFCELF.js} +4 -4
  62. package/dist/{chunk-MCEEC3VH.js → chunk-BOGOBZVM.js} +3 -3
  63. package/dist/{chunk-6NVEUQSL.js → chunk-C4JUURO5.js} +1 -1
  64. package/dist/{chunk-6D5BKKSQ.js → chunk-CDS2B2P6.js} +1 -1
  65. package/dist/{chunk-4QX7QEWY.js → chunk-CMLDMKSO.js} +11 -11
  66. package/dist/{chunk-R2KXIBCX.js → chunk-CQ7HSDCL.js} +1 -1
  67. package/dist/{chunk-FNBKEF54.js → chunk-DAXXLQKB.js} +1 -1
  68. package/dist/{chunk-K4BGK3CO.js → chunk-DBNPVU3L.js} +3 -3
  69. package/dist/{chunk-KERA6OZN.js → chunk-DGSPRILL.js} +1 -1
  70. package/dist/{chunk-NRKVFULI.js → chunk-DKIXS7MS.js} +567 -244
  71. package/dist/{chunk-N4JU7GWK.js → chunk-DL2ZIXBO.js} +2 -2
  72. package/dist/{chunk-SZVIRQZ2.js → chunk-DMWRKJV5.js} +4 -4
  73. package/dist/{chunk-DOZ3NXES.js → chunk-DSIZONVE.js} +1 -1
  74. package/dist/{chunk-FMGXDDBU.js → chunk-EA5ADIDK.js} +2 -2
  75. package/dist/{chunk-HVLPRHZS.js → chunk-EKMBY4QP.js} +2 -2
  76. package/dist/{chunk-PLDGQ5PO.js → chunk-ENFPDBSU.js} +3 -3
  77. package/dist/{chunk-OFKUNYQJ.js → chunk-EPHVGD5Z.js} +1 -1
  78. package/dist/{chunk-W5UPPL3W.js → chunk-ESPLVOFC.js} +2 -2
  79. package/dist/{chunk-3FNX54TD.js → chunk-FNJNVUXR.js} +2 -2
  80. package/dist/{chunk-NNI6QKKZ.js → chunk-FQFW3DUZ.js} +13 -1
  81. package/dist/{chunk-OV7R2AH5.js → chunk-FWJLS7XD.js} +60 -58
  82. package/dist/{chunk-LC6TM5OT.js → chunk-FXWKGNRV.js} +2 -2
  83. package/dist/{chunk-QG3EYUDB.js → chunk-GAD5DQOY.js} +3 -3
  84. package/dist/{chunk-QIZUNM6F.js → chunk-GBRUBIGE.js} +4 -4
  85. package/dist/{chunk-XKVXLDSJ.js → chunk-GKGLVDDV.js} +1 -1
  86. package/dist/{chunk-YTPCWCA3.js → chunk-GU4T2RAQ.js} +1 -1
  87. package/dist/{chunk-6TFS6ET5.js → chunk-I5THQVYP.js} +1 -1
  88. package/dist/{chunk-KMK4YAS2.js → chunk-IDBCFDIT.js} +1 -1
  89. package/dist/{chunk-OW6XTJ33.js → chunk-IF36RZZS.js} +3 -3
  90. package/dist/{chunk-5XWE6QZ3.js → chunk-IXWGJ4W7.js} +3 -3
  91. package/dist/{chunk-LW57KBYK.js → chunk-J73MGZ2C.js} +2 -2
  92. package/dist/{chunk-ZLBTDKSI.js → chunk-JCSPXBS3.js} +1 -1
  93. package/dist/{chunk-XRDP2SYY.js → chunk-JPNPTILP.js} +1 -1
  94. package/dist/{chunk-5WTGRSBC.js → chunk-JSLUA5Y4.js} +1 -1
  95. package/dist/{chunk-BE5QWX5N.js → chunk-KOURHC2N.js} +0 -4
  96. package/dist/{chunk-RVAVU222.js → chunk-KZE2BXFZ.js} +8 -8
  97. package/dist/{chunk-HHEQZTPC.js → chunk-L6LJB5HH.js} +2 -2
  98. package/dist/{chunk-UBS6VEGB.js → chunk-LAN52TLS.js} +1 -1
  99. package/dist/{chunk-XDZGOUCR.js → chunk-LAPEZATU.js} +1 -1
  100. package/dist/{chunk-DTUPDNN3.js → chunk-LNT72PI5.js} +4 -4
  101. package/dist/{chunk-N7QGYSFB.js → chunk-LRCMPXIA.js} +4 -4
  102. package/dist/{chunk-HAZURA7S.js → chunk-LVEROZU4.js} +2 -2
  103. package/dist/{chunk-VME3CJER.js → chunk-LYD3C73Z.js} +1 -1
  104. package/dist/{chunk-CA4XLTI7.js → chunk-N2Y3OWEV.js} +2 -2
  105. package/dist/{chunk-CMX37MSO.js → chunk-N46VH2AV.js} +5 -5
  106. package/dist/{chunk-DF3OGJAK.js → chunk-N6SI4IIT.js} +1 -1
  107. package/dist/{chunk-ZJNRM77Y.js → chunk-O6X4QXB5.js} +4 -4
  108. package/dist/{chunk-MFL2TZ3W.js → chunk-OH4AABUT.js} +1 -1
  109. package/dist/{chunk-EHQESDH2.js → chunk-OHOWEMHO.js} +1 -1
  110. package/dist/{chunk-BMC2HG53.js → chunk-OQMBWJPH.js} +2 -2
  111. package/dist/{chunk-PBMB2LY5.js → chunk-P5VTTPU2.js} +2 -2
  112. package/dist/{chunk-3MDRW5MA.js → chunk-PBQ5M44A.js} +2 -2
  113. package/dist/{chunk-UU2RQMXS.js → chunk-PRBE5CM3.js} +1 -1
  114. package/dist/{chunk-AVXOG7CE.js → chunk-PXZQSL5A.js} +3 -3
  115. package/dist/{chunk-WDASBBB5.js → chunk-Q4WP4LIW.js} +1 -1
  116. package/dist/{chunk-ZFEGVWHT.js → chunk-QFOEY6RN.js} +51 -31
  117. package/dist/{chunk-NDPTTHBH.js → chunk-QGXOLAXL.js} +2 -2
  118. package/dist/{chunk-4ESVWDQK.js → chunk-QJLICXCV.js} +2 -2
  119. package/dist/{chunk-5VBNFLG2.js → chunk-QP3ID4X3.js} +1 -1
  120. package/dist/{chunk-UI2BJVP5.js → chunk-R2FE3PBQ.js} +1 -1
  121. package/dist/{chunk-BUI5NC7I.js → chunk-RFYOW244.js} +1 -1
  122. package/dist/{chunk-GYKVLGU4.js → chunk-RXBYBQDN.js} +2 -2
  123. package/dist/{chunk-EG2Y5Z2K.js → chunk-SIM42VD3.js} +3 -3
  124. package/dist/{chunk-G5WS77NL.js → chunk-SMPTZ2RM.js} +4 -4
  125. package/dist/{chunk-NYWECWZJ.js → chunk-SNH3O6QM.js} +5 -5
  126. package/dist/{chunk-WSR2ZXAJ.js → chunk-SUQJGDPA.js} +4 -4
  127. package/dist/{chunk-RRAIAUBR.js → chunk-T3E6EVLQ.js} +8 -8
  128. package/dist/{chunk-7IPA3CRG.js → chunk-T62OEGJG.js} +4 -4
  129. package/dist/{chunk-R74OHYTB.js → chunk-TAKEQAZZ.js} +3 -3
  130. package/dist/{chunk-F7VTQIU7.js → chunk-TBRKUYQX.js} +7 -7
  131. package/dist/{chunk-WHLVH4RN.js → chunk-TFRTL5VZ.js} +2 -2
  132. package/dist/{chunk-RIC6PMBR.js → chunk-TGK2C73H.js} +8 -8
  133. package/dist/{chunk-34VX7KOL.js → chunk-TH4GYG3E.js} +4 -4
  134. package/dist/{chunk-A2TQNJZP.js → chunk-TLAUR5IR.js} +13 -12
  135. package/dist/{chunk-YYTI5JIC.js → chunk-U7WZYWGA.js} +2 -2
  136. package/dist/{chunk-6OTK5LAS.js → chunk-UROZLRSZ.js} +4 -4
  137. package/dist/{chunk-M4VLYKT5.js → chunk-UZ52KLQM.js} +2 -2
  138. package/dist/{chunk-7SJC6BWZ.js → chunk-VDKOJ5WD.js} +1 -1
  139. package/dist/{chunk-25YTS3TI.js → chunk-VIGX66F7.js} +2 -2
  140. package/dist/{chunk-SKV7U4GW.js → chunk-VXPWIJZV.js} +7 -7
  141. package/dist/{chunk-IJWG755C.js → chunk-VYMODH6P.js} +1 -1
  142. package/dist/{chunk-FB4JUZFB.js → chunk-VZVB3ZR3.js} +4 -4
  143. package/dist/chunk-WJJXUXSO.js +23 -0
  144. package/dist/{chunk-TIMWFAPD.js → chunk-WRRMBJBQ.js} +1 -1
  145. package/dist/{chunk-UYKWOC5A.js → chunk-X2X7M3B6.js} +1 -1
  146. package/dist/{chunk-UI2KUK3F.js → chunk-X3S5LZQO.js} +2 -2
  147. package/dist/{chunk-DYFB2ZZD.js → chunk-YEUUI6JF.js} +1 -1
  148. package/dist/{chunk-TPPONKYW.js → chunk-YFRC6GEN.js} +3 -3
  149. package/dist/{chunk-BBANQAF4.js → chunk-YFSTGK5R.js} +2 -2
  150. package/dist/{chunk-76FXHSMH.js → chunk-YHWY7YA3.js} +2 -2
  151. package/dist/{chunk-YNIIYGL4.js → chunk-YKDEE7ZL.js} +2 -2
  152. package/dist/{chunk-NJKJAYV2.js → chunk-YNHS5G26.js} +2 -2
  153. package/dist/{chunk-QLJKQS6P.js → chunk-YQ6JASMO.js} +6 -6
  154. package/dist/{chunk-HS322YUO.js → chunk-YSGXL7CX.js} +2 -2
  155. package/dist/{chunk-52BRBQMY.js → chunk-Z2QQZOG3.js} +2 -2
  156. package/dist/{chunk-5N6S5K57.js → chunk-Z6DBHMEN.js} +2 -2
  157. package/dist/{chunk-MRFW7VTW.js → chunk-ZBJ56XDB.js} +2 -2
  158. package/dist/{chunk-RIN4CBRB.js → chunk-ZBWL72TB.js} +2 -8
  159. package/dist/{chunk-7STT4ZVP.js → chunk-ZD46XW74.js} +1 -1
  160. package/dist/{chunk-HAFZQK53.js → chunk-ZN7LWXVC.js} +1 -1
  161. package/dist/{chunk-PQGIRNRF.js → chunk-ZTAKV4UY.js} +6 -6
  162. package/dist/{chunk-O7UECTZO.js → chunk-ZW34ZAIP.js} +1 -1
  163. package/dist/{collection-add-products-RHIQZ37R.js → collection-add-products-V34BC5KZ.js} +34 -33
  164. package/dist/{collection-create-EBAELCA2.js → collection-create-T3I4AQ6T.js} +4 -4
  165. package/dist/{collection-detail-SJ4ZZLWY.js → collection-detail-FBF245L5.js} +34 -33
  166. package/dist/{collection-edit-TGXPOOSX.js → collection-edit-L5GPFBBX.js} +4 -4
  167. package/dist/{collection-list-OFZGXVJA.js → collection-list-2NU2RHF6.js} +39 -37
  168. package/dist/{collection-metadata-3CDRKSCP.js → collection-metadata-4CATBMBR.js} +34 -33
  169. package/dist/{commission-rate-create-OOVFRTYM.js → commission-rate-create-BX5ON475.js} +40 -38
  170. package/dist/{commission-rate-detail-5XFV6XH2.js → commission-rate-detail-2FIUCRWQ.js} +33 -32
  171. package/dist/{commission-rate-edit-6B4P2GOV.js → commission-rate-edit-QO54ISLU.js} +40 -38
  172. package/dist/{commission-rate-list-OLAGFQNJ.js → commission-rate-list-TSEOC244.js} +3 -3
  173. package/dist/{customer-create-DT6MYVMQ.js → customer-create-QHA4KM6N.js} +3 -3
  174. package/dist/{customer-create-address-VIG65ALU.js → customer-create-address-TYWVWNUE.js} +3 -3
  175. package/dist/{customer-detail-Q4K56AZ4.js → customer-detail-X7RDPYCB.js} +34 -33
  176. package/dist/{customer-edit-MHNLUNUL.js → customer-edit-X4HQOUAE.js} +3 -3
  177. package/dist/{customer-group-add-customers-SI5TTT4S.js → customer-group-add-customers-Y4AIT37I.js} +4 -4
  178. package/dist/{customer-group-create-W3FV4OEH.js → customer-group-create-NA2UKCF6.js} +3 -3
  179. package/dist/{customer-group-detail-NSEFUNCF.js → customer-group-detail-LG45HYN7.js} +34 -33
  180. package/dist/{customer-group-edit-ZANHQ7RS.js → customer-group-edit-3O6HAYYN.js} +3 -3
  181. package/dist/customer-group-list-AKB2QL2I.js +59 -0
  182. package/dist/{customer-group-metadata-LXJK3IMS.js → customer-group-metadata-5EY56USK.js} +34 -33
  183. package/dist/{customer-list-CHRZJTNK.js → customer-list-MH5N6M5L.js} +4 -4
  184. package/dist/{customer-metadata-ZZSCYFHY.js → customer-metadata-UI7VJNBB.js} +34 -33
  185. package/dist/{customers-add-customer-group-TIBDJPYF.js → customers-add-customer-group-WXARGETR.js} +33 -32
  186. package/dist/{edit-inventory-item-Y3CIG6L5.js → edit-inventory-item-7LUBIEJG.js} +33 -32
  187. package/dist/{edit-inventory-item-attributes-CZNIVWXY.js → edit-inventory-item-attributes-GPWA3SHB.js} +33 -32
  188. package/dist/{edit-reservation-OQCAZUIS.js → edit-reservation-T6SKOG2F.js} +5 -5
  189. package/dist/{edit-rules-G7GRUQL6.js → edit-rules-MOJW3IY6.js} +34 -33
  190. package/dist/index.js +292 -287
  191. package/dist/inventory-create-G4PFD6IN.js +58 -0
  192. package/dist/{inventory-detail-6V43ZQDK.js → inventory-detail-N2YB6A4C.js} +33 -32
  193. package/dist/{inventory-list-TAJ4T5JG.js → inventory-list-HGWKI5CF.js} +4 -4
  194. package/dist/{inventory-metadata-PFXMJTSB.js → inventory-metadata-R35MGH5G.js} +34 -33
  195. package/dist/{inventory-stock-B4FYZAQB.js → inventory-stock-VKNHPP3I.js} +35 -34
  196. package/dist/{invite-YRARW3RW.js → invite-VQ2HR2OM.js} +3 -3
  197. package/dist/{location-create-GXPH4WZI.js → location-create-ZMNB7YKR.js} +3 -3
  198. package/dist/{location-detail-NOUHQA4M.js → location-detail-SHY5JFEP.js} +33 -32
  199. package/dist/{location-edit-GNKQAXJG.js → location-edit-DMBF3CYZ.js} +3 -3
  200. package/dist/{location-fulfillment-providers-A27CQMJN.js → location-fulfillment-providers-XJWKGU5I.js} +37 -36
  201. package/dist/location-list-B4EVW7LE.js +55 -0
  202. package/dist/{location-sales-channels-U3MVWUAT.js → location-sales-channels-D5SNTEWM.js} +5 -5
  203. package/dist/{location-service-zone-create-E4LW45D7.js → location-service-zone-create-AC4JW4Y4.js} +6 -6
  204. package/dist/{location-service-zone-edit-UIVVQVMW.js → location-service-zone-edit-MTGU2O4C.js} +5 -5
  205. package/dist/{location-service-zone-manage-areas-F3SOZGVW.js → location-service-zone-manage-areas-M52WHSWM.js} +6 -6
  206. package/dist/location-service-zone-shipping-option-create-VKRDPJY5.js +59 -0
  207. package/dist/{location-service-zone-shipping-option-edit-3KNW7UBD.js → location-service-zone-shipping-option-edit-PLEDWIY3.js} +5 -5
  208. package/dist/{location-service-zone-shipping-option-pricing-35SMJ6XP.js → location-service-zone-shipping-option-pricing-MZHMML32.js} +9 -9
  209. package/dist/{login-QCYKZCZP.js → login-GQ2TKLJX.js} +32 -31
  210. package/dist/{manage-locations-VIWHIN7B.js → manage-locations-BA7VMY3Q.js} +4 -4
  211. package/dist/{marketplace-add-currencies-Q4EJAXDN.js → marketplace-add-currencies-C6S4Z3VT.js} +5 -5
  212. package/dist/{marketplace-detail-CYMZCRWM.js → marketplace-detail-D5AXFDDY.js} +33 -32
  213. package/dist/{marketplace-edit-AMRUND2Q.js → marketplace-edit-U5B6WA56.js} +4 -4
  214. package/dist/{marketplace-metadata-LYNL3W6L.js → marketplace-metadata-6E3EUPQR.js} +34 -33
  215. package/dist/{order-allocate-items-AZ3FDELU.js → order-allocate-items-A365NKBM.js} +6 -6
  216. package/dist/{order-create-claim-HWZI4OEK.js → order-create-claim-TASIQWLS.js} +36 -35
  217. package/dist/{order-create-edit-VIIAC2AA.js → order-create-edit-AEWAUNSL.js} +34 -33
  218. package/dist/{order-create-exchange-KRGBFSCC.js → order-create-exchange-BZULQKWC.js} +36 -35
  219. package/dist/{order-create-fulfillment-K4LB6U6E.js → order-create-fulfillment-ZQLJDGCV.js} +33 -32
  220. package/dist/{order-create-refund-2OCPOAJS.js → order-create-refund-MPWH7PYP.js} +33 -32
  221. package/dist/{order-create-return-4PREWHB7.js → order-create-return-J35OSJJW.js} +9 -9
  222. package/dist/{order-create-shipment-BD3DKSJX.js → order-create-shipment-UDYZFTKL.js} +33 -32
  223. package/dist/{order-detail-GETGE7YJ.js → order-detail-43QRHVIH.js} +38 -37
  224. package/dist/{order-edit-billing-address-3GN3QU4Y.js → order-edit-billing-address-6PKPD4GI.js} +34 -33
  225. package/dist/{order-edit-email-D6KSNSY4.js → order-edit-email-TRDITOOM.js} +33 -32
  226. package/dist/{order-edit-shipping-address-Z7RP4UBB.js → order-edit-shipping-address-RU4NGJNM.js} +33 -32
  227. package/dist/{order-list-727TI7BS.js → order-list-DNYS57KP.js} +9 -8
  228. package/dist/{order-metadata-UCAS6KEK.js → order-metadata-AJZBUN36.js} +34 -33
  229. package/dist/{order-receive-return-YZGUVELT.js → order-receive-return-D5ZVVYMY.js} +34 -33
  230. package/dist/{order-request-transfer-DBXAIXEG.js → order-request-transfer-DAUOVTRI.js} +33 -32
  231. package/dist/pages/index.d.ts +165 -165
  232. package/dist/pages/index.js +136 -135
  233. package/dist/{payout-detail-SQKDY2F6.js → payout-detail-C5WLFRRT.js} +3 -3
  234. package/dist/{payout-list-HPMP3CJH.js → payout-list-KUFWUKTH.js} +3 -3
  235. package/dist/{price-list-configuration-XGX6HV4Q.js → price-list-configuration-JNMKFGCK.js} +6 -6
  236. package/dist/price-list-create-NVCPOU2Y.js +77 -0
  237. package/dist/{price-list-detail-VA4F6JQJ.js → price-list-detail-ANVE56H3.js} +35 -34
  238. package/dist/{price-list-edit-OYRI7KZD.js → price-list-edit-BVVLQ5WV.js} +5 -5
  239. package/dist/{price-list-list-27QDRHNY.js → price-list-list-NFS344UG.js} +6 -6
  240. package/dist/price-list-prices-add-JSWTZXIB.js +72 -0
  241. package/dist/{price-list-prices-edit-7WHKIZHY.js → price-list-prices-edit-5OKGMVHM.js} +35 -34
  242. package/dist/{product-attributes-BM54QUBZ.js → product-attributes-ASPKDH7H.js} +3 -3
  243. package/dist/product-create-B6OYB6QQ.js +71 -0
  244. package/dist/{product-create-option-53CW7HXH.js → product-create-option-WDFFZYTE.js} +3 -3
  245. package/dist/product-create-variant-HVY3YA5T.js +56 -0
  246. package/dist/{product-detail-Y24FRUWA.js → product-detail-IL6J7IDR.js} +33 -32
  247. package/dist/{product-edit-AY2UVE3V.js → product-edit-IASCMBET.js} +4 -4
  248. package/dist/{product-edit-option-ULBJKDOE.js → product-edit-option-UMOGVYLM.js} +3 -3
  249. package/dist/{product-export-4G44DDXA.js → product-export-FYASMR3R.js} +39 -37
  250. package/dist/{product-import-TIPIYEJJ.js → product-import-RDTWXZSA.js} +33 -32
  251. package/dist/{product-list-BLFQWHIA.js → product-list-E26DQCLM.js} +34 -33
  252. package/dist/{product-media-IKMGI2QA.js → product-media-FAZR34OC.js} +5 -5
  253. package/dist/{product-metadata-SKNZWKWO.js → product-metadata-RYDY2LBO.js} +34 -33
  254. package/dist/{product-organization-KHZQIBDK.js → product-organization-63ODFBLM.js} +5 -5
  255. package/dist/{product-prices-XCC26S77.js → product-prices-RLZBWN6C.js} +7 -7
  256. package/dist/{product-sales-channels-G22VD3VU.js → product-sales-channels-7HVGLKJQ.js} +4 -4
  257. package/dist/{product-shipping-profile-OPOM33SD.js → product-shipping-profile-X5CZJCET.js} +3 -3
  258. package/dist/{product-stock-WIPVYJUH.js → product-stock-NXLCWJ7S.js} +35 -34
  259. package/dist/{product-tag-create-3QK7MKMI.js → product-tag-create-5JKOHKHR.js} +33 -32
  260. package/dist/{product-tag-detail-LSMLNJW6.js → product-tag-detail-4P36B7AC.js} +40 -38
  261. package/dist/{product-tag-edit-NHRQ55DX.js → product-tag-edit-QZOCJSA3.js} +33 -32
  262. package/dist/{product-tag-list-UHBM6KBT.js → product-tag-list-IOUBMHTR.js} +40 -38
  263. package/dist/{product-tag-metadata-DGH7UF4L.js → product-tag-metadata-HDTR5225.js} +34 -33
  264. package/dist/{product-type-create-X6NFMD2J.js → product-type-create-RHG4KEAV.js} +3 -3
  265. package/dist/{product-type-detail-GNRN4KTB.js → product-type-detail-57S6OUU7.js} +35 -34
  266. package/dist/{product-type-edit-K5WDDPEY.js → product-type-edit-CABB7R7Y.js} +3 -3
  267. package/dist/{product-type-list-6CTXFZBZ.js → product-type-list-E2BUVXIT.js} +4 -4
  268. package/dist/{product-type-metadata-NFMNORIB.js → product-type-metadata-3XHYM7AO.js} +34 -33
  269. package/dist/{product-variant-detail-TGSUSOEB.js → product-variant-detail-Q6V67DO7.js} +33 -32
  270. package/dist/{product-variant-edit-6OJRQWC6.js → product-variant-edit-7RJL2DWH.js} +33 -32
  271. package/dist/{product-variant-manage-inventory-items-RFKTIM5A.js → product-variant-manage-inventory-items-WENX2QCZ.js} +3 -3
  272. package/dist/{product-variant-metadata-4MWJAXYI.js → product-variant-metadata-QHCUMQCQ.js} +34 -33
  273. package/dist/{profile-detail-C5BGWHSQ.js → profile-detail-IWSYAO67.js} +3 -3
  274. package/dist/{profile-edit-RXXHWORE.js → profile-edit-Y5UUUKVH.js} +3 -3
  275. package/dist/{promotion-add-campaign-TWE6G4R7.js → promotion-add-campaign-GBB6M2OB.js} +7 -7
  276. package/dist/promotion-create-RISO27OH.js +56 -0
  277. package/dist/{promotion-detail-KGIX6TA2.js → promotion-detail-BQOADUXZ.js} +35 -34
  278. package/dist/{promotion-edit-details-J2JWFT2L.js → promotion-edit-details-E2XKWY7L.js} +4 -4
  279. package/dist/{promotion-list-U7PXQLZT.js → promotion-list-6ILZBIJZ.js} +6 -6
  280. package/dist/{refund-reason-create-KYM2BCJ2.js → refund-reason-create-RWGVYY7U.js} +33 -32
  281. package/dist/{refund-reason-edit-JIG7FL7D.js → refund-reason-edit-F3AKUO4F.js} +33 -32
  282. package/dist/{refund-reason-list-IO4INIKF.js → refund-reason-list-LOEY5OHX.js} +35 -33
  283. package/dist/{region-add-countries-OBJOMTGC.js → region-add-countries-6HKFPVNE.js} +4 -4
  284. package/dist/{region-create-NI7QPOS5.js → region-create-BOHJGJCB.js} +5 -5
  285. package/dist/{region-detail-TR3IRW6L.js → region-detail-VR2RSHCW.js} +4 -4
  286. package/dist/{region-edit-AGC3N4RU.js → region-edit-QNJ2HT76.js} +5 -5
  287. package/dist/{region-list-D4VLAQXD.js → region-list-IHOCFATO.js} +4 -4
  288. package/dist/{region-metadata-NJUXGJJZ.js → region-metadata-S5X464KM.js} +34 -33
  289. package/dist/{reservation-create-3PQ56FKT.js → reservation-create-26QAWABA.js} +5 -5
  290. package/dist/{reservation-detail-TKILHE26.js → reservation-detail-CGAEHOZ6.js} +33 -32
  291. package/dist/{reservation-list-56EFZDRI.js → reservation-list-EKIR6AET.js} +5 -5
  292. package/dist/{reservation-metadata-V7BLDGSJ.js → reservation-metadata-55FYLG45.js} +34 -33
  293. package/dist/{reset-password-SXAC55FW.js → reset-password-VQXCSILN.js} +3 -3
  294. package/dist/{return-reason-create-2HPI654O.js → return-reason-create-KED7446I.js} +3 -3
  295. package/dist/{return-reason-edit-NJSTWTP3.js → return-reason-edit-57EU3XSE.js} +3 -3
  296. package/dist/{return-reason-list-RYRELICQ.js → return-reason-list-FHE2DTG6.js} +5 -4
  297. package/dist/{sales-channel-add-products-27YLUPZP.js → sales-channel-add-products-UNJBYNPM.js} +34 -33
  298. package/dist/{sales-channel-create-QJTXOKAM.js → sales-channel-create-NSZEHGZE.js} +4 -4
  299. package/dist/{sales-channel-detail-EW2YN7VL.js → sales-channel-detail-C62VVFTT.js} +34 -33
  300. package/dist/{sales-channel-edit-CDOQ5WR3.js → sales-channel-edit-W6Z2ERBJ.js} +4 -4
  301. package/dist/sales-channel-list-L233THQV.js +52 -0
  302. package/dist/{sales-channel-metadata-YABMFKT3.js → sales-channel-metadata-XL6OAO6S.js} +34 -33
  303. package/dist/{shipping-option-type-create-KXRPACLG.js → shipping-option-type-create-KSQX5DHV.js} +33 -32
  304. package/dist/{shipping-option-type-detail-KHX2BRFP.js → shipping-option-type-detail-NQFIUIZU.js} +34 -33
  305. package/dist/{shipping-option-type-edit-N3L4TPUK.js → shipping-option-type-edit-P5JP6TGA.js} +33 -32
  306. package/dist/shipping-option-type-list-NMG6FSD7.js +62 -0
  307. package/dist/{shipping-profile-create-T5WADNL2.js → shipping-profile-create-UJNCCKKK.js} +3 -3
  308. package/dist/{shipping-profile-detail-3II2GLOC.js → shipping-profile-detail-XKLW22RQ.js} +3 -3
  309. package/dist/{shipping-profile-metadata-WDM4Y653.js → shipping-profile-metadata-YEKUKBUJ.js} +34 -33
  310. package/dist/{shipping-profiles-list-DY4G7Z3K.js → shipping-profiles-list-CCMGZXHJ.js} +3 -3
  311. package/dist/{store-address-edit-7BBZSSIP.js → store-address-edit-YHL23NAM.js} +53 -72
  312. package/dist/store-bulk-edit-3WUPOXIX.js +194 -0
  313. package/dist/{store-closure-edit-CN5JR4F5.js → store-closure-edit-LNMWVVWG.js} +3 -3
  314. package/dist/{store-create-FUYTHJL5.js → store-create-TDHCGON2.js} +68 -75
  315. package/dist/{store-details-65JQK3M3.js → store-details-6THDNDJB.js} +45 -35
  316. package/dist/{store-edit-IQAVLFU5.js → store-edit-LJKBFRJG.js} +102 -50
  317. package/dist/{store-list-DWFAFCKV.js → store-list-UA2GXT7T.js} +39 -38
  318. package/dist/store-member-invite-K76O2YUD.js +206 -0
  319. package/dist/{store-payment-details-edit-Z3GLY4TO.js → store-payment-details-edit-VD76VCVF.js} +22 -14
  320. package/dist/{store-professional-details-edit-7KWQOK46.js → store-professional-details-edit-3QMC5OGO.js} +3 -3
  321. package/dist/{tax-region-create-6VHCIPP7.js → tax-region-create-NVE7TJVZ.js} +34 -33
  322. package/dist/tax-region-detail-6W6ZCFKH.js +70 -0
  323. package/dist/{tax-region-edit-7A6MZBXC.js → tax-region-edit-XIQISIV6.js} +33 -32
  324. package/dist/{tax-region-list-52PPICIL.js → tax-region-list-BU5TV5MS.js} +6 -6
  325. package/dist/{tax-region-metadata-UZYHKPTE.js → tax-region-metadata-C2IM452E.js} +34 -33
  326. package/dist/{tax-region-province-create-PU53RZPV.js → tax-region-province-create-OVLIZPNP.js} +4 -4
  327. package/dist/{tax-region-province-detail-7ERAOT3Y.js → tax-region-province-detail-EY77MY5Q.js} +35 -34
  328. package/dist/{tax-region-tax-override-create-TIPPPVTR.js → tax-region-tax-override-create-RJSVKZGY.js} +41 -39
  329. package/dist/{tax-region-tax-override-edit-HDQ4NS5I.js → tax-region-tax-override-edit-2UZSGMS2.js} +41 -39
  330. package/dist/{tax-region-tax-rate-create-4MTXOD2Z.js → tax-region-tax-rate-create-KDN6G52Y.js} +5 -5
  331. package/dist/{tax-region-tax-rate-edit-VUIEX4DT.js → tax-region-tax-rate-edit-D4BFDDJ7.js} +5 -5
  332. package/dist/{user-detail-C7ZG3JWC.js → user-detail-3KQDH6LZ.js} +4 -4
  333. package/dist/{user-edit-LSWGYWV3.js → user-edit-MXS2DV37.js} +3 -3
  334. package/dist/{user-invite-XYAU2UIS.js → user-invite-CTH3YNUV.js} +3 -3
  335. package/dist/{user-list-YXRP4JU5.js → user-list-2766SCTA.js} +3 -3
  336. package/dist/{user-metadata-JGCXU4OO.js → user-metadata-4FOEUIG2.js} +34 -33
  337. package/package.json +5 -5
  338. package/dist/attribute-list-C5NS26AD.js +0 -63
  339. package/dist/customer-group-list-GCEKCBUE.js +0 -58
  340. package/dist/inventory-create-MFCGCJFB.js +0 -57
  341. package/dist/location-list-AVCPUKBH.js +0 -54
  342. package/dist/location-service-zone-shipping-option-create-DREWJ7SR.js +0 -58
  343. package/dist/price-list-create-SJBCYSRX.js +0 -76
  344. package/dist/price-list-prices-add-BLORGT25.js +0 -71
  345. package/dist/product-create-KEJB3U44.js +0 -70
  346. package/dist/product-create-variant-YZODW67L.js +0 -55
  347. package/dist/promotion-create-CPRWDBDW.js +0 -55
  348. package/dist/sales-channel-list-JOSLAWUO.js +0 -51
  349. package/dist/shipping-option-type-list-5A676BZT.js +0 -61
  350. package/dist/store-member-invite-GAWCXSWL.js +0 -338
  351. package/dist/tax-region-detail-AZVNX4QN.js +0 -69
@@ -10,17 +10,17 @@ import {
10
10
  import {
11
11
  RouteDrawer,
12
12
  useRouteModal
13
- } from "./chunk-OV7R2AH5.js";
13
+ } from "./chunk-FWJLS7XD.js";
14
14
  import {
15
15
  Form
16
16
  } from "./chunk-3QSRE5LS.js";
17
17
  import {
18
18
  useSeller,
19
19
  useUpdateSellerAddress
20
- } from "./chunk-M3YP3NX4.js";
20
+ } from "./chunk-2FLBJM53.js";
21
21
  import "./chunk-RHKRREUU.js";
22
22
  import "./chunk-ZA2KFUFR.js";
23
- import "./chunk-RIN4CBRB.js";
23
+ import "./chunk-ZBWL72TB.js";
24
24
  import "./chunk-NBMM2TZK.js";
25
25
 
26
26
  // src/pages/stores/store-address-edit/store-address-edit.tsx
@@ -36,14 +36,13 @@ import { useTranslation } from "react-i18next";
36
36
  import * as zod from "zod";
37
37
  import { jsx, jsxs } from "react/jsx-runtime";
38
38
  var StoreAddressSchema = zod.object({
39
- first_name: zod.string().min(1),
40
- last_name: zod.string().min(1),
39
+ name: zod.string().min(1),
41
40
  address_1: zod.string().optional().or(zod.literal("")),
41
+ address_2: zod.string().optional().or(zod.literal("")),
42
42
  city: zod.string().optional().or(zod.literal("")),
43
43
  province: zod.string().optional().or(zod.literal("")),
44
- postal_code: zod.string().min(1),
45
- country_code: zod.string().min(2).max(2),
46
- phone: zod.string().min(1)
44
+ postal_code: zod.string().optional().or(zod.literal("")),
45
+ country_code: zod.string().min(2).max(2)
47
46
  });
48
47
  var StoreAddressEditForm = ({
49
48
  seller
@@ -53,14 +52,13 @@ var StoreAddressEditForm = ({
53
52
  const address = seller.address;
54
53
  const form = useForm({
55
54
  defaultValues: {
56
- first_name: address?.first_name ?? "",
57
- last_name: address?.last_name ?? "",
55
+ name: address?.name ?? "",
58
56
  address_1: address?.address_1 ?? "",
57
+ address_2: address?.address_2 ?? "",
59
58
  city: address?.city ?? "",
60
59
  province: address?.province ?? "",
61
60
  postal_code: address?.postal_code ?? "",
62
- country_code: address?.country_code ?? "",
63
- phone: address?.phone ?? ""
61
+ country_code: address?.country_code ?? ""
64
62
  },
65
63
  resolver: zodResolver(StoreAddressSchema)
66
64
  });
@@ -68,14 +66,13 @@ var StoreAddressEditForm = ({
68
66
  const handleSubmit = form.handleSubmit(async (values) => {
69
67
  await mutateAsync(
70
68
  {
71
- first_name: values.first_name,
72
- last_name: values.last_name,
69
+ name: values.name,
73
70
  address_1: values.address_1 || null,
71
+ address_2: values.address_2 || null,
74
72
  city: values.city || null,
75
73
  province: values.province || null,
76
- postal_code: values.postal_code,
77
- country_code: values.country_code,
78
- phone: values.phone
74
+ postal_code: values.postal_code || null,
75
+ country_code: values.country_code
79
76
  },
80
77
  {
81
78
  onSuccess: () => {
@@ -97,32 +94,30 @@ var StoreAddressEditForm = ({
97
94
  className: "flex flex-1 flex-col overflow-hidden",
98
95
  children: [
99
96
  /* @__PURE__ */ jsxs(RouteDrawer.Body, { className: "flex flex-col gap-y-4 overflow-y-auto", children: [
100
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
101
- /* @__PURE__ */ jsx(
102
- Form.Field,
103
- {
104
- control: form.control,
105
- name: "first_name",
106
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
107
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.firstName") }),
108
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
109
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
110
- ] })
111
- }
112
- ),
113
- /* @__PURE__ */ jsx(
114
- Form.Field,
115
- {
116
- control: form.control,
117
- name: "last_name",
118
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
119
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.lastName") }),
120
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
121
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
122
- ] })
123
- }
124
- )
125
- ] }),
97
+ /* @__PURE__ */ jsx(
98
+ Form.Field,
99
+ {
100
+ control: form.control,
101
+ name: "name",
102
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
103
+ /* @__PURE__ */ jsx(Form.Label, { children: t("store.address.nameLabel") }),
104
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", placeholder: t("store.address.namePlaceholder"), ...field }) }),
105
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
106
+ ] })
107
+ }
108
+ ),
109
+ /* @__PURE__ */ jsx(
110
+ Form.Field,
111
+ {
112
+ control: form.control,
113
+ name: "country_code",
114
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
115
+ /* @__PURE__ */ jsx(Form.Label, { children: t("fields.country") }),
116
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(CountrySelect, { ...field }) }),
117
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
118
+ ] })
119
+ }
120
+ ),
126
121
  /* @__PURE__ */ jsx(
127
122
  Form.Field,
128
123
  {
@@ -135,6 +130,18 @@ var StoreAddressEditForm = ({
135
130
  ] })
136
131
  }
137
132
  ),
133
+ /* @__PURE__ */ jsx(
134
+ Form.Field,
135
+ {
136
+ control: form.control,
137
+ name: "address_2",
138
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
139
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.address2") }),
140
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
141
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
142
+ ] })
143
+ }
144
+ ),
138
145
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
139
146
  /* @__PURE__ */ jsx(
140
147
  Form.Field,
@@ -148,52 +155,26 @@ var StoreAddressEditForm = ({
148
155
  ] })
149
156
  }
150
157
  ),
151
- /* @__PURE__ */ jsx(
152
- Form.Field,
153
- {
154
- control: form.control,
155
- name: "province",
156
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
157
- /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.state") }),
158
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
159
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
160
- ] })
161
- }
162
- )
163
- ] }),
164
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
165
158
  /* @__PURE__ */ jsx(
166
159
  Form.Field,
167
160
  {
168
161
  control: form.control,
169
162
  name: "postal_code",
170
163
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
171
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.postalCode") }),
164
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.postalCode") }),
172
165
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
173
166
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
174
167
  ] })
175
168
  }
176
- ),
177
- /* @__PURE__ */ jsx(
178
- Form.Field,
179
- {
180
- control: form.control,
181
- name: "country_code",
182
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
183
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.country") }),
184
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(CountrySelect, { ...field }) }),
185
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
186
- ] })
187
- }
188
169
  )
189
170
  ] }),
190
171
  /* @__PURE__ */ jsx(
191
172
  Form.Field,
192
173
  {
193
174
  control: form.control,
194
- name: "phone",
175
+ name: "province",
195
176
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
196
- /* @__PURE__ */ jsx(Form.Label, { children: t("fields.phone") }),
177
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.state") }),
197
178
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { size: "small", ...field }) }),
198
179
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
199
180
  ] })
@@ -0,0 +1,194 @@
1
+ import {
2
+ DataGrid,
3
+ createDataGridHelper
4
+ } from "./chunk-72Q2T2FK.js";
5
+ import "./chunk-IQPN4PZJ.js";
6
+ import "./chunk-TKGWSUEI.js";
7
+ import {
8
+ KeyboundForm
9
+ } from "./chunk-U2ZFCAPX.js";
10
+ import "./chunk-INNFZYX2.js";
11
+ import "./chunk-LAVHRER2.js";
12
+ import "./chunk-Y7QKP6QU.js";
13
+ import {
14
+ require_dist
15
+ } from "./chunk-ZZO3INVE.js";
16
+ import {
17
+ RouteFocusModal,
18
+ useRouteModal
19
+ } from "./chunk-FWJLS7XD.js";
20
+ import "./chunk-3QSRE5LS.js";
21
+ import {
22
+ sellersQueryKeys,
23
+ useSellers
24
+ } from "./chunk-2FLBJM53.js";
25
+ import {
26
+ queryClient
27
+ } from "./chunk-RHKRREUU.js";
28
+ import "./chunk-ZA2KFUFR.js";
29
+ import {
30
+ sdk
31
+ } from "./chunk-ZBWL72TB.js";
32
+ import {
33
+ __toESM
34
+ } from "./chunk-NBMM2TZK.js";
35
+
36
+ // src/pages/stores/store-bulk-edit/components/store-bulk-edit-form.tsx
37
+ import { useEffect, useMemo } from "react";
38
+ import { useForm } from "react-hook-form";
39
+ import { useTranslation } from "react-i18next";
40
+ import { useSearchParams } from "react-router-dom";
41
+ import { Button, toast } from "@medusajs/ui";
42
+ var import_types = __toESM(require_dist(), 1);
43
+ import { jsx, jsxs } from "react/jsx-runtime";
44
+ var helper = createDataGridHelper();
45
+ var useColumns = () => {
46
+ const { t } = useTranslation();
47
+ return useMemo(
48
+ () => [
49
+ helper.column({
50
+ id: "name",
51
+ name: t("fields.name"),
52
+ header: t("fields.name"),
53
+ cell: (context) => /* @__PURE__ */ jsx(DataGrid.ReadonlyCell, { context, color: "normal", children: context.row.original.name }),
54
+ disableHiding: true
55
+ }),
56
+ helper.column({
57
+ id: "status",
58
+ name: t("fields.status"),
59
+ header: t("fields.status"),
60
+ type: "select",
61
+ field: (context) => `statuses.${context.row.original.id}`,
62
+ cell: (context) => /* @__PURE__ */ jsx(
63
+ DataGrid.SelectCell,
64
+ {
65
+ context,
66
+ options: [
67
+ {
68
+ label: t("stores.status.open"),
69
+ value: import_types.SellerStatus.OPEN
70
+ },
71
+ {
72
+ label: t("stores.status.pendingApproval"),
73
+ value: import_types.SellerStatus.PENDING_APPROVAL
74
+ },
75
+ {
76
+ label: t("stores.status.suspended"),
77
+ value: import_types.SellerStatus.SUSPENDED
78
+ }
79
+ ]
80
+ }
81
+ )
82
+ })
83
+ ],
84
+ [t]
85
+ );
86
+ };
87
+ var StoreBulkEditForm = () => {
88
+ const { t } = useTranslation();
89
+ const [searchParams] = useSearchParams();
90
+ const { handleSuccess, setCloseOnEscape } = useRouteModal();
91
+ const ids = useMemo(
92
+ () => (searchParams.get("ids") ?? "").split(",").map((id) => id.trim()).filter(Boolean),
93
+ [searchParams]
94
+ );
95
+ const { sellers, isLoading } = useSellers(
96
+ { id: ids, limit: ids.length || 1 },
97
+ { enabled: ids.length > 0 }
98
+ );
99
+ const form = useForm({
100
+ defaultValues: { statuses: {} }
101
+ });
102
+ useEffect(() => {
103
+ if (sellers) {
104
+ form.reset({
105
+ statuses: Object.fromEntries(
106
+ sellers.map((s) => [s.id, s.status])
107
+ )
108
+ });
109
+ }
110
+ }, [sellers, form]);
111
+ const columns = useColumns();
112
+ const handleSubmit = form.handleSubmit(async ({ statuses }) => {
113
+ if (!sellers) return;
114
+ const updates = sellers.filter((seller) => statuses[seller.id] !== seller.status).map(
115
+ (seller) => sdk.admin.sellers.$id.mutate({
116
+ $id: seller.id,
117
+ status: statuses[seller.id]
118
+ })
119
+ );
120
+ if (!updates.length) {
121
+ handleSuccess();
122
+ return;
123
+ }
124
+ try {
125
+ await Promise.all(updates);
126
+ await queryClient.invalidateQueries({
127
+ queryKey: sellersQueryKeys.lists()
128
+ });
129
+ toast.success(
130
+ t("stores.bulkEdit.successToast", { count: updates.length })
131
+ );
132
+ handleSuccess();
133
+ } catch (error) {
134
+ toast.error(error.message);
135
+ }
136
+ });
137
+ const { isSubmitting } = form.formState;
138
+ return /* @__PURE__ */ jsx(RouteFocusModal.Form, { form, "data-testid": "store-bulk-edit-form", children: /* @__PURE__ */ jsxs(KeyboundForm, { onSubmit: handleSubmit, className: "flex size-full flex-col", children: [
139
+ /* @__PURE__ */ jsx(RouteFocusModal.Header, { "data-testid": "store-bulk-edit-form-header" }),
140
+ /* @__PURE__ */ jsx(
141
+ RouteFocusModal.Body,
142
+ {
143
+ className: "flex flex-col overflow-hidden",
144
+ "data-testid": "store-bulk-edit-form-body",
145
+ children: /* @__PURE__ */ jsx(
146
+ DataGrid,
147
+ {
148
+ state: form,
149
+ columns,
150
+ data: sellers ?? [],
151
+ isLoading,
152
+ onEditingChange: (editing) => setCloseOnEscape(!editing),
153
+ disableInteractions: isSubmitting,
154
+ "data-testid": "store-bulk-edit-data-grid"
155
+ }
156
+ )
157
+ }
158
+ ),
159
+ /* @__PURE__ */ jsx(RouteFocusModal.Footer, { "data-testid": "store-bulk-edit-form-footer", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
160
+ /* @__PURE__ */ jsx(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx(
161
+ Button,
162
+ {
163
+ size: "small",
164
+ variant: "secondary",
165
+ type: "button",
166
+ "data-testid": "store-bulk-edit-cancel-button",
167
+ children: t("actions.cancel")
168
+ }
169
+ ) }),
170
+ /* @__PURE__ */ jsx(
171
+ Button,
172
+ {
173
+ size: "small",
174
+ type: "submit",
175
+ isLoading: isSubmitting,
176
+ "data-testid": "store-bulk-edit-save-button",
177
+ children: t("actions.save")
178
+ }
179
+ )
180
+ ] }) })
181
+ ] }) });
182
+ };
183
+
184
+ // src/pages/stores/store-bulk-edit/index.tsx
185
+ import { jsx as jsx2 } from "react/jsx-runtime";
186
+ var Root = () => /* @__PURE__ */ jsx2(RouteFocusModal, { children: /* @__PURE__ */ jsx2(StoreBulkEditForm, {}) });
187
+ var StoreBulkEditPage = Object.assign(Root, {
188
+ Form: StoreBulkEditForm
189
+ });
190
+ var Component = Root;
191
+ export {
192
+ Component,
193
+ StoreBulkEditPage
194
+ };
@@ -5,17 +5,17 @@ import {
5
5
  import {
6
6
  RouteDrawer,
7
7
  useRouteModal
8
- } from "./chunk-OV7R2AH5.js";
8
+ } from "./chunk-FWJLS7XD.js";
9
9
  import {
10
10
  Form
11
11
  } from "./chunk-3QSRE5LS.js";
12
12
  import {
13
13
  useSeller,
14
14
  useUpdateSeller
15
- } from "./chunk-M3YP3NX4.js";
15
+ } from "./chunk-2FLBJM53.js";
16
16
  import "./chunk-RHKRREUU.js";
17
17
  import "./chunk-ZA2KFUFR.js";
18
- import "./chunk-RIN4CBRB.js";
18
+ import "./chunk-ZBWL72TB.js";
19
19
  import "./chunk-NBMM2TZK.js";
20
20
 
21
21
  // src/pages/stores/store-closure-edit/store-closure-edit.tsx
@@ -1,54 +1,58 @@
1
+ import {
2
+ HandleInput
3
+ } from "./chunk-TLE6YHGH.js";
1
4
  import {
2
5
  TabbedForm,
3
6
  defineTabMeta,
4
7
  useTabbedForm
5
- } from "./chunk-KA3VYXNA.js";
8
+ } from "./chunk-4LXBQTFN.js";
6
9
  import "./chunk-TKGWSUEI.js";
7
10
  import "./chunk-U2ZFCAPX.js";
8
11
  import {
9
12
  RouteFocusModal,
10
13
  useRouteModal
11
- } from "./chunk-OV7R2AH5.js";
14
+ } from "./chunk-FWJLS7XD.js";
12
15
  import {
13
16
  Form
14
17
  } from "./chunk-3QSRE5LS.js";
15
- import "./chunk-3MDRW5MA.js";
16
- import "./chunk-MFL2TZ3W.js";
17
- import "./chunk-YNIIYGL4.js";
18
- import "./chunk-CBHNHLUZ.js";
19
- import "./chunk-VME3CJER.js";
20
- import "./chunk-XMVTX2EN.js";
21
- import "./chunk-5PUHROK4.js";
22
- import "./chunk-TPPONKYW.js";
23
- import "./chunk-DF3OGJAK.js";
24
- import "./chunk-XRDP2SYY.js";
25
- import "./chunk-FNBKEF54.js";
26
- import "./chunk-EHQESDH2.js";
27
- import "./chunk-XKVXLDSJ.js";
28
- import "./chunk-XDZGOUCR.js";
29
- import "./chunk-K4BGK3CO.js";
30
- import "./chunk-YYTI5JIC.js";
31
- import "./chunk-HAFZQK53.js";
32
- import "./chunk-IJWG755C.js";
18
+ import "./chunk-PBQ5M44A.js";
19
+ import "./chunk-OH4AABUT.js";
20
+ import "./chunk-YKDEE7ZL.js";
21
+ import "./chunk-AEMDNTW5.js";
22
+ import "./chunk-LYD3C73Z.js";
23
+ import "./chunk-7O5NDICV.js";
24
+ import "./chunk-46M463BR.js";
25
+ import "./chunk-YFRC6GEN.js";
26
+ import "./chunk-N6SI4IIT.js";
27
+ import "./chunk-JPNPTILP.js";
28
+ import "./chunk-DAXXLQKB.js";
29
+ import "./chunk-OHOWEMHO.js";
30
+ import "./chunk-GKGLVDDV.js";
31
+ import "./chunk-WJJXUXSO.js";
32
+ import "./chunk-LAPEZATU.js";
33
+ import "./chunk-DBNPVU3L.js";
34
+ import "./chunk-U7WZYWGA.js";
35
+ import "./chunk-ZN7LWXVC.js";
36
+ import "./chunk-VYMODH6P.js";
33
37
  import {
34
38
  useCreateSeller
35
- } from "./chunk-M3YP3NX4.js";
36
- import "./chunk-UU2RQMXS.js";
37
- import "./chunk-O4STPJR2.js";
38
- import "./chunk-R74OHYTB.js";
39
- import "./chunk-22XJUSMM.js";
40
- import "./chunk-OFKUNYQJ.js";
41
- import "./chunk-W5UPPL3W.js";
39
+ } from "./chunk-2FLBJM53.js";
40
+ import "./chunk-PRBE5CM3.js";
41
+ import "./chunk-5TRY5IMZ.js";
42
+ import "./chunk-TAKEQAZZ.js";
43
+ import "./chunk-B6FG7A6W.js";
44
+ import "./chunk-EPHVGD5Z.js";
45
+ import "./chunk-ESPLVOFC.js";
42
46
  import {
43
47
  useStore
44
- } from "./chunk-LC6TM5OT.js";
45
- import "./chunk-7SJC6BWZ.js";
46
- import "./chunk-N4JU7GWK.js";
47
- import "./chunk-52BRBQMY.js";
48
- import "./chunk-BA2HXHTW.js";
48
+ } from "./chunk-FXWKGNRV.js";
49
+ import "./chunk-VDKOJ5WD.js";
50
+ import "./chunk-DL2ZIXBO.js";
51
+ import "./chunk-Z2QQZOG3.js";
52
+ import "./chunk-5CK6XEFV.js";
49
53
  import "./chunk-RHKRREUU.js";
50
54
  import "./chunk-ZA2KFUFR.js";
51
- import "./chunk-RIN4CBRB.js";
55
+ import "./chunk-ZBWL72TB.js";
52
56
  import "./chunk-NBMM2TZK.js";
53
57
 
54
58
  // src/pages/stores/store-create/components/store-create-form.tsx
@@ -59,18 +63,19 @@ import { useForm } from "react-hook-form";
59
63
  import { useTranslation as useTranslation3 } from "react-i18next";
60
64
 
61
65
  // src/pages/stores/store-create/components/schema.ts
66
+ import i18n from "i18next";
62
67
  import { z } from "zod";
63
68
  var CreateStoreSchema = z.object({
64
- name: z.string().min(1),
65
- email: z.string().email(),
66
- currency_code: z.string().min(1),
67
- description: z.string().optional().or(z.literal("")),
69
+ name: z.string().min(1, { message: i18n.t("stores.create.validation.nameRequired") }),
70
+ email: z.string().min(1, { message: i18n.t("stores.create.validation.emailRequired") }).email({ message: i18n.t("stores.create.validation.emailInvalid") }),
71
+ phone: z.string().optional().or(z.literal("")),
72
+ currency_code: z.string().min(1, { message: i18n.t("stores.create.validation.currencyRequired") }),
68
73
  handle: z.string().optional().or(z.literal("")),
69
- member_email: z.string().email()
74
+ member_email: z.string().min(1, { message: i18n.t("stores.create.validation.emailRequired") }).email({ message: i18n.t("stores.create.validation.emailInvalid") })
70
75
  });
71
76
 
72
77
  // src/pages/stores/store-create/components/store-create-details-tab.tsx
73
- import { Heading, Input, Select, Text, Textarea } from "@medusajs/ui";
78
+ import { Heading, Input, Select } from "@medusajs/ui";
74
79
  import { useTranslation } from "react-i18next";
75
80
  import { jsx, jsxs } from "react/jsx-runtime";
76
81
  var Root = () => {
@@ -78,13 +83,7 @@ var Root = () => {
78
83
  const form = useTabbedForm();
79
84
  const { store } = useStore();
80
85
  return /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto px-3", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex w-full max-w-[720px] flex-col gap-y-8 px-px py-16", children: [
81
- /* @__PURE__ */ jsxs("div", { children: [
82
- /* @__PURE__ */ jsx(Heading, { children: t("stores.create.header", "Create Store") }),
83
- /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t(
84
- "stores.create.hint",
85
- "Create a new store on the marketplace."
86
- ) })
87
- ] }),
86
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Heading, { children: t("stores.create.header") }) }),
88
87
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-4", children: [
89
88
  /* @__PURE__ */ jsx(
90
89
  Form.Field,
@@ -104,8 +103,8 @@ var Root = () => {
104
103
  control: form.control,
105
104
  name: "handle",
106
105
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
107
- /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.handle") }),
108
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
106
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, tooltip: t("stores.handleTooltip"), children: t("fields.handle") }),
107
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(HandleInput, { ...field }) }),
109
108
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
110
109
  ] })
111
110
  }
@@ -122,6 +121,18 @@ var Root = () => {
122
121
  ] })
123
122
  }
124
123
  ),
124
+ /* @__PURE__ */ jsx(
125
+ Form.Field,
126
+ {
127
+ control: form.control,
128
+ name: "phone",
129
+ render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
130
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.phone") }),
131
+ /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { type: "tel", ...field }) }),
132
+ /* @__PURE__ */ jsx(Form.ErrorMessage, {})
133
+ ] })
134
+ }
135
+ ),
125
136
  /* @__PURE__ */ jsx(
126
137
  Form.Field,
127
138
  {
@@ -143,18 +154,6 @@ var Root = () => {
143
154
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
144
155
  ] })
145
156
  }
146
- ),
147
- /* @__PURE__ */ jsx(
148
- Form.Field,
149
- {
150
- control: form.control,
151
- name: "description",
152
- render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
153
- /* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("fields.description") }),
154
- /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Textarea, { ...field }) }),
155
- /* @__PURE__ */ jsx(Form.ErrorMessage, {})
156
- ] })
157
- }
158
157
  )
159
158
  ] })
160
159
  ] }) });
@@ -162,12 +161,12 @@ var Root = () => {
162
161
  Root._tabMeta = defineTabMeta({
163
162
  id: "details",
164
163
  labelKey: "stores.create.tabs.details",
165
- validationFields: ["name", "email", "currency_code"]
164
+ validationFields: ["name", "email", "phone", "currency_code"]
166
165
  });
167
166
  var StoreCreateDetailsTab = Root;
168
167
 
169
168
  // src/pages/stores/store-create/components/store-create-users-tab.tsx
170
- import { Heading as Heading2, Input as Input2, Text as Text2 } from "@medusajs/ui";
169
+ import { Heading as Heading2, Input as Input2, Text } from "@medusajs/ui";
171
170
  import { useTranslation as useTranslation2 } from "react-i18next";
172
171
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
173
172
  var Root2 = () => {
@@ -175,11 +174,9 @@ var Root2 = () => {
175
174
  const form = useTabbedForm();
176
175
  return /* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col items-center overflow-y-auto px-3", children: /* @__PURE__ */ jsxs2("div", { className: "mx-auto flex w-full max-w-[720px] flex-col gap-y-8 px-px py-16", children: [
177
176
  /* @__PURE__ */ jsxs2("div", { children: [
178
- /* @__PURE__ */ jsx2(Heading2, { children: t("stores.create.usersHeader", "Users") }),
179
- /* @__PURE__ */ jsx2(Text2, { size: "small", className: "text-ui-fg-subtle", children: t(
180
- "stores.create.usersHint",
181
- "Invite the store owner by email. They will receive an invitation to set up their account."
182
- ) })
177
+ /* @__PURE__ */ jsx2(Heading2, { children: t("stores.create.usersHeader") }),
178
+ /* @__PURE__ */ jsx2(Text, { size: "small", className: "text-ui-fg-subtle", children: t("stores.create.usersHint") }),
179
+ /* @__PURE__ */ jsx2(Text, { size: "small", className: "text-ui-fg-subtle mt-1", children: t("stores.create.usersHintSecondary") })
183
180
  ] }),
184
181
  /* @__PURE__ */ jsx2("div", { className: "flex flex-col gap-y-4", children: /* @__PURE__ */ jsx2(
185
182
  Form.Field,
@@ -187,19 +184,15 @@ var Root2 = () => {
187
184
  control: form.control,
188
185
  name: "member_email",
189
186
  render: ({ field }) => /* @__PURE__ */ jsxs2(Form.Item, { children: [
190
- /* @__PURE__ */ jsx2(Form.Label, { optional: true, children: t("stores.create.ownerEmail", "Owner email") }),
187
+ /* @__PURE__ */ jsx2(Form.Label, { children: t("fields.email") }),
191
188
  /* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsx2(
192
189
  Input2,
193
190
  {
194
191
  type: "email",
195
192
  ...field,
196
- placeholder: "owner@example.com"
193
+ placeholder: "admin@example.com"
197
194
  }
198
195
  ) }),
199
- /* @__PURE__ */ jsx2(Form.Hint, { children: t(
200
- "stores.create.ownerEmailHint",
201
- "The owner will be granted the Store Administration role."
202
- ) }),
203
196
  /* @__PURE__ */ jsx2(Form.ErrorMessage, {})
204
197
  ] })
205
198
  }
@@ -221,8 +214,8 @@ var StoreCreateForm = ({ children }) => {
221
214
  defaultValues: {
222
215
  name: "",
223
216
  email: "",
217
+ phone: "",
224
218
  currency_code: "",
225
- description: "",
226
219
  handle: "",
227
220
  member_email: ""
228
221
  },
@@ -234,8 +227,8 @@ var StoreCreateForm = ({ children }) => {
234
227
  await createSeller({
235
228
  name: values.name,
236
229
  email: values.email,
230
+ phone: values.phone || void 0,
237
231
  currency_code: values.currency_code,
238
- description: values.description || void 0,
239
232
  handle: values.handle || void 0,
240
233
  member: {
241
234
  email: values.member_email