@mercurjs/admin 2.2.0-canary.5 → 2.2.0-canary.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-campaign-promotions-FAG3FAOF.js → add-campaign-promotions-QQUFYFRH.js} +14 -14
- package/dist/{adjust-inventory-EAAPNIBZ.js → adjust-inventory-P2M7KZ77.js} +33 -34
- package/dist/{api-key-management-create-MRLR4WFZ.js → api-key-management-create-KDKSGJ4C.js} +5 -5
- package/dist/{api-key-management-detail-PIN6NFQF.js → api-key-management-detail-O6KKT7V2.js} +36 -38
- package/dist/{api-key-management-edit-EZHFP3RR.js → api-key-management-edit-NOGBLKBT.js} +5 -5
- package/dist/{api-key-management-list-OPANEDHB.js → api-key-management-list-QVYDHEZQ.js} +9 -9
- package/dist/{api-key-management-sales-channels-PBL3V4IS.js → api-key-management-sales-channels-W5NFP6EW.js} +9 -10
- package/dist/{attribute-create-F55LOXRA.js → attribute-create-KR4DSDH2.js} +96 -83
- package/dist/{attribute-create-possible-value-EXVHC272.js → attribute-create-possible-value-QFXKXZM4.js} +2 -2
- package/dist/{attribute-detail-NRDJUPTJ.js → attribute-detail-LWKL6UMS.js} +61 -49
- package/dist/{attribute-edit-SB6GN67M.js → attribute-edit-WXO5FGR6.js} +7 -7
- package/dist/{attribute-edit-possible-value-5CLQOLVR.js → attribute-edit-possible-value-RO7BY3NC.js} +5 -5
- package/dist/{attribute-edit-ranking-7AAAYEC7.js → attribute-edit-ranking-YGR3KCSC.js} +3 -3
- package/dist/attribute-list-QUSXFHRZ.js +61 -0
- package/dist/breadcrumb-GHBR74WM.js +27 -0
- package/dist/breadcrumb-OBHTESQD.js +26 -0
- package/dist/{campaign-budget-edit-WKSYXTBX.js → campaign-budget-edit-QXAXRI6B.js} +3 -3
- package/dist/{campaign-configuration-ZTK46EB5.js → campaign-configuration-A3E6G2VQ.js} +3 -3
- package/dist/{campaign-create-7BELREFT.js → campaign-create-TZH66JVU.js} +7 -7
- package/dist/{campaign-detail-QMLFWZ6K.js → campaign-detail-PF3LUUZU.js} +49 -46
- package/dist/{campaign-edit-ZGLDY4X4.js → campaign-edit-6CIGS4ZU.js} +25 -9
- package/dist/{campaign-list-NQGNOFVZ.js → campaign-list-YXZ5GE7I.js} +7 -7
- package/dist/{categories-metadata-5GXBBHEH.js → categories-metadata-AIT33J5U.js} +34 -35
- package/dist/{category-create-QPQQGIEN.js → category-create-NTSIOKLK.js} +10 -7
- package/dist/category-detail-NQIXS2WH.js +113 -0
- package/dist/{category-edit-DJP7TK4X.js → category-edit-4PGWERPJ.js} +31 -13
- package/dist/category-icon-edit-C2VAH5JA.js +117 -0
- package/dist/{category-list-T5SE63HU.js → category-list-5XGK4PEB.js} +12 -9
- package/dist/category-media-E5UUDN3I.js +655 -0
- package/dist/category-organize-T45BC4HL.js +129 -0
- package/dist/{category-products-255EJFTV.js → category-products-SX6CH3ZZ.js} +48 -48
- package/dist/{chunk-G3GSRFTB.js → chunk-26PTCTT3.js} +9 -8
- package/dist/{chunk-XAIID3PU.js → chunk-2CHED2KM.js} +25 -16
- package/dist/{chunk-FFNSWUDC.js → chunk-2GHNKPYY.js} +39 -11
- package/dist/{chunk-3JSAS7QP.js → chunk-2SMBVF6F.js} +24 -7
- package/dist/{chunk-WQFFCK3R.js → chunk-2V74T2WI.js} +1 -1
- package/dist/{chunk-26UTIAAZ.js → chunk-32URSQ4F.js} +1 -1
- package/dist/chunk-3LGGCLSO.js +185 -0
- package/dist/chunk-3RRHQY24.js +1284 -0
- package/dist/{chunk-6RHAGO5O.js → chunk-3WOU2BB5.js} +5 -4
- package/dist/{chunk-VKOE5J66.js → chunk-3XOE4NV5.js} +11 -2
- package/dist/{chunk-GP4J42UD.js → chunk-4TNOZ4VH.js} +3 -2
- package/dist/{chunk-UNOG2S56.js → chunk-4XGFT4RZ.js} +167 -102
- package/dist/{chunk-JQV7CXEC.js → chunk-5BSSIDW6.js} +17 -2
- package/dist/{chunk-FB7DDNCA.js → chunk-5CHUXS7G.js} +4 -4
- package/dist/{chunk-PR7Y27BW.js → chunk-5EOYDQAS.js} +1 -1
- package/dist/{chunk-LYZDVZWA.js → chunk-5NSOIZFB.js} +5 -3
- package/dist/{chunk-SS7LB52P.js → chunk-5WTNXDRM.js} +10 -9
- package/dist/chunk-6BAPAIQM.js +8 -0
- package/dist/{chunk-D2NBZVQC.js → chunk-6PGIRZA6.js} +15 -13
- package/dist/{chunk-NQEXDLYH.js → chunk-6ZVV2XHU.js} +28 -9
- package/dist/{chunk-TXNRS2JR.js → chunk-7CQD5AQ6.js} +2 -6
- package/dist/chunk-7IGLZARZ.js +101 -0
- package/dist/{chunk-SONUZNDT.js → chunk-7MYE6VFQ.js} +75 -53
- package/dist/chunk-7OKYEA6I.js +283 -0
- package/dist/{chunk-GKGLVDDV.js → chunk-A2F5MDPU.js} +1 -1
- package/dist/{chunk-NUC27ELX.js → chunk-AASCLZ5N.js} +5 -5
- package/dist/{chunk-46A3QXAL.js → chunk-ABS7HMLY.js} +2 -2
- package/dist/{chunk-PRBE5CM3.js → chunk-AFYILTAC.js} +35 -3
- package/dist/{chunk-KMZOBR5Q.js → chunk-AO3P27WX.js} +19 -16
- package/dist/chunk-APAT344J.js +144 -0
- package/dist/{chunk-NMFVQDVF.js → chunk-APMBU7ZV.js} +5 -5
- package/dist/{chunk-EFZBEG7O.js → chunk-B3IK3FNO.js} +24 -8
- package/dist/{chunk-3VTAK3S6.js → chunk-BFUHW56P.js} +4 -4
- package/dist/chunk-BW7BDHZV.js +34 -0
- package/dist/{chunk-LYZT5REU.js → chunk-C4XKPQ6T.js} +14 -1
- package/dist/{chunk-N6SI4IIT.js → chunk-CARSKIPW.js} +1 -1
- package/dist/chunk-CGIVQ7D2.js +115 -0
- package/dist/{chunk-HR7TFO2X.js → chunk-CQKCZECQ.js} +7 -7
- package/dist/chunk-CU4UVEHX.js +121 -0
- package/dist/{chunk-M5AJSIRN.js → chunk-DJD3MWED.js} +1 -1
- package/dist/{chunk-HZQGZQTV.js → chunk-DP6YFZHP.js} +10 -8
- package/dist/{chunk-I5THQVYP.js → chunk-DUVYF37J.js} +1 -1
- package/dist/{chunk-FXWKGNRV.js → chunk-EJY35WBK.js} +2 -2
- package/dist/{chunk-KJSCFEXT.js → chunk-EQGJGBA5.js} +291 -76
- package/dist/{chunk-XJ3WC4G7.js → chunk-ESC6LVVC.js} +4 -3
- package/dist/{chunk-46M463BR.js → chunk-EWFOFSF7.js} +1 -1
- package/dist/{chunk-533GMKEG.js → chunk-F5NW4XBU.js} +23 -3
- package/dist/{chunk-5AZCIOS4.js → chunk-F6NPDZHW.js} +2 -2
- package/dist/{chunk-R5F52U3C.js → chunk-FIWEITDG.js} +36 -8
- package/dist/{chunk-UFGVU7RF.js → chunk-FLFE6HXW.js} +1 -1
- package/dist/{chunk-4LXBQTFN.js → chunk-FREUYHMS.js} +1 -1
- package/dist/{chunk-2ZRWLCYP.js → chunk-FVG5DTS6.js} +3 -3
- package/dist/{chunk-E5WBU7ZR.js → chunk-G2LHEJLS.js} +4 -4
- package/dist/{chunk-OHOWEMHO.js → chunk-G5KNNOXX.js} +32 -26
- package/dist/{chunk-CKUIM5ZD.js → chunk-GLWJ5J3F.js} +52 -23
- package/dist/{chunk-PVZBDWLK.js → chunk-GRH7C3QN.js} +1 -1
- package/dist/{chunk-CKD5563X.js → chunk-GT5A4XN2.js} +4 -3
- package/dist/{chunk-MKBCBAS2.js → chunk-GVPKRQWI.js} +79 -28
- package/dist/{chunk-BFT3CN5L.js → chunk-GWW6MPYK.js} +5 -4
- package/dist/{chunk-VDKOJ5WD.js → chunk-GYRTURN7.js} +1 -1
- package/dist/{chunk-YFRC6GEN.js → chunk-HLL6GLZO.js} +3 -3
- package/dist/{chunk-BKNAX6QQ.js → chunk-I3RIVWBQ.js} +5 -4
- package/dist/{chunk-6NDM5WGE.js → chunk-I5HY5Q3K.js} +19 -72
- package/dist/{chunk-WJJXUXSO.js → chunk-IC2PLPRP.js} +1 -1
- package/dist/{chunk-L3E6LES5.js → chunk-IGTR66D2.js} +7 -7
- package/dist/{chunk-WRVGLMRW.js → chunk-IJ2CSCLP.js} +7 -4
- package/dist/{chunk-EZGIPTIF.js → chunk-IOAB3VND.js} +54 -19
- package/dist/chunk-IWBQZK6E.js +166 -0
- package/dist/chunk-IZDTQFCP.js +65 -0
- package/dist/{chunk-AEMDNTW5.js → chunk-J54BZXZX.js} +2 -2
- package/dist/{chunk-A7JOHU6Q.js → chunk-J772X4Q3.js} +4 -3
- package/dist/{chunk-Y2M536WR.js → chunk-JHBNG7OD.js} +17 -0
- package/dist/{chunk-LYD3C73Z.js → chunk-JI7HMGMO.js} +1 -1
- package/dist/{chunk-5J2HQOKK.js → chunk-JPFPQWNT.js} +5 -4
- package/dist/{chunk-KT7X72J4.js → chunk-JXSXBSV6.js} +9 -1
- package/dist/chunk-K2JORJRZ.js +281 -0
- package/dist/{chunk-33BERJSG.js → chunk-K6RZE3F7.js} +1 -1
- package/dist/{chunk-MFI5TG54.js → chunk-KA3BALYJ.js} +56 -16
- package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
- package/dist/{chunk-VERWLDVW.js → chunk-KL4DBMVO.js} +6 -5
- package/dist/{chunk-EBQUMS7H.js → chunk-KQVRWXAL.js} +50 -20
- package/dist/chunk-KUBTN5TC.js +206 -0
- package/dist/{chunk-Q2ULPJJ6.js → chunk-KXWN75T2.js} +2 -2
- package/dist/{chunk-MVNO35S5.js → chunk-L6D7AGRF.js} +18 -8
- package/dist/{chunk-LAPEZATU.js → chunk-L7DIEO5B.js} +1 -1
- package/dist/{chunk-YYMACYP6.js → chunk-LEQINL55.js} +3 -2
- package/dist/{chunk-CMHI2RPL.js → chunk-LPIPSLR7.js} +21 -0
- package/dist/chunk-LXNWSQOE.js +87 -0
- package/dist/{chunk-ZBWL72TB.js → chunk-LXZXXOJ3.js} +1 -11
- package/dist/{chunk-GQLVERZW.js → chunk-M5BZBKA3.js} +9 -9
- package/dist/{chunk-4XFFF2L5.js → chunk-MBHP7XGQ.js} +12 -11
- package/dist/{chunk-KXIA66EJ.js → chunk-MJTFEVGB.js} +36 -13
- package/dist/{chunk-ZRFWXNT3.js → chunk-MMKUMSZS.js} +205 -205
- package/dist/{chunk-DAXXLQKB.js → chunk-MO7TNIVQ.js} +1 -1
- package/dist/{chunk-ZN7LWXVC.js → chunk-MTHPNKQ4.js} +5 -5
- package/dist/{chunk-2YN2OI3W.js → chunk-MVRIYUOU.js} +34 -8
- package/dist/{chunk-K43FFKGD.js → chunk-N2CMOV3N.js} +1 -1
- package/dist/chunk-NASXWD7N.js +659 -0
- package/dist/{chunk-UXGLM3B4.js → chunk-NEGOGYEO.js} +4 -4
- package/dist/{chunk-3OUWXGMT.js → chunk-NI4FAFNL.js} +129 -61
- package/dist/{chunk-SXGSYSW7.js → chunk-NLJ5F7FS.js} +15 -7
- package/dist/{chunk-DWCBB4QM.js → chunk-NPUD4G37.js} +7 -6
- package/dist/{chunk-YNHS5G26.js → chunk-NQ2RDSI3.js} +2 -2
- package/dist/{chunk-6XTHMAA2.js → chunk-O6KUSG6F.js} +31 -13
- package/dist/{chunk-KTBL35I2.js → chunk-OAGTPKC5.js} +1 -1
- package/dist/chunk-ODDJZVYL.js +476 -0
- package/dist/{chunk-Q23KHB6V.js → chunk-OG5AVHPY.js} +111 -29
- package/dist/{chunk-AKC67AN5.js → chunk-OPE24DZA.js} +83 -63
- package/dist/{chunk-C4JUURO5.js → chunk-OT5X3VOQ.js} +1 -1
- package/dist/chunk-OTGABFC4.js +382 -0
- package/dist/{chunk-LD7NVG2X.js → chunk-P2DFLKCN.js} +5 -5
- package/dist/{chunk-634XVU3D.js → chunk-PAYQJPGK.js} +8 -1
- package/dist/{chunk-CPXK5RSJ.js → chunk-PEUWV5YK.js} +3 -2
- package/dist/{chunk-DRJAKRTI.js → chunk-PEVS3GLB.js} +7 -6
- package/dist/{chunk-34OFJ74B.js → chunk-PFD4SHVF.js} +53 -36
- package/dist/{chunk-FNKBJCNF.js → chunk-PHWYJ26A.js} +4 -4
- package/dist/{chunk-VYMODH6P.js → chunk-PYF5EER5.js} +1 -1
- package/dist/{chunk-7BD24KNM.js → chunk-PYZ7VL5X.js} +3 -3
- package/dist/{chunk-QFE4AEQJ.js → chunk-Q2CJGCIA.js} +401 -107
- package/dist/{chunk-X7H7TIOT.js → chunk-Q4R2O7XF.js} +9 -9
- package/dist/{chunk-5TRY5IMZ.js → chunk-Q6GUA5VE.js} +2 -2
- package/dist/{chunk-B66CMFMH.js → chunk-QCIDV3AP.js} +3 -3
- package/dist/{chunk-TNNQPNXY.js → chunk-QE4R2KT3.js} +1 -1
- package/dist/{chunk-FPV32HVT.js → chunk-QEX45BI3.js} +8 -6
- package/dist/chunk-QJCUPZZQ.js +356 -0
- package/dist/chunk-QR3GYYX6.js +0 -0
- package/dist/{chunk-3B6MTW5G.js → chunk-QUHSHIAC.js} +3 -0
- package/dist/{chunk-EB5QHYKL.js → chunk-QVIX6O76.js} +2 -2
- package/dist/{chunk-OH4AABUT.js → chunk-R325CPYC.js} +1 -1
- package/dist/{chunk-JPNPTILP.js → chunk-R4O667NT.js} +1 -1
- package/dist/{chunk-UKDC2AQR.js → chunk-RMB7MPIT.js} +1 -1
- package/dist/{chunk-2FGRDEAD.js → chunk-RQQ53CQJ.js} +1 -1
- package/dist/{chunk-LEG67A2R.js → chunk-SAU35JEB.js} +2 -11
- package/dist/{chunk-BGQ7H2KL.js → chunk-SHFF3Y5U.js} +26 -12
- package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
- package/dist/{chunk-IAWZQKUH.js → chunk-THMINQBZ.js} +4 -3
- package/dist/{chunk-LO7NJYHZ.js → chunk-TJJ7S3GL.js} +5 -4
- package/dist/{chunk-LXMGYWPO.js → chunk-TVTI7RG5.js} +10 -9
- package/dist/{chunk-J4MAIN7L.js → chunk-UK5BVJI7.js} +2 -2
- package/dist/{chunk-P42E3L6Z.js → chunk-VH4W6LKI.js} +4 -3
- package/dist/{chunk-ESPLVOFC.js → chunk-VHCDSNXF.js} +2 -2
- package/dist/{chunk-GPJ6KVY2.js → chunk-VHOCBKSA.js} +7 -6
- package/dist/chunk-VM56ZITS.js +356 -0
- package/dist/{chunk-4KX6CBJ4.js → chunk-VSLHL2AZ.js} +2 -0
- package/dist/{chunk-N3334MXP.js → chunk-VU6KTPOZ.js} +647 -754
- package/dist/{chunk-K6L5PHHQ.js → chunk-VVJPSCBO.js} +10 -9
- package/dist/{chunk-EPHVGD5Z.js → chunk-VXW3BCN2.js} +1 -1
- package/dist/{chunk-F5H5JZQZ.js → chunk-VYSB4CTB.js} +2112 -1706
- package/dist/{chunk-N3BYBEDV.js → chunk-WF3ZDT5Z.js} +11 -95
- package/dist/{chunk-X3PXBMI3.js → chunk-WNBV2NBG.js} +11 -10
- package/dist/{chunk-F7O6IXPA.js → chunk-WV4SPFOD.js} +72 -30
- package/dist/{chunk-ZB4SO44T.js → chunk-WX4ABVXL.js} +3 -3
- package/dist/{chunk-WYA62MUL.js → chunk-X5PMVI7H.js} +3 -3
- package/dist/{chunk-2MVNFKL6.js → chunk-XJQ4MWBR.js} +16 -15
- package/dist/{chunk-DV7QV3X2.js → chunk-XWP4ZGKN.js} +11 -16
- package/dist/{chunk-IWI34SYT.js → chunk-Y6C2YIKD.js} +8 -7
- package/dist/{chunk-CVFVEDMV.js → chunk-YBVXGODN.js} +4 -3
- package/dist/{chunk-X45JKZYW.js → chunk-YL7CBNVF.js} +11 -8
- package/dist/chunk-YPM6XXSO.js +525 -0
- package/dist/{chunk-S4SVK5DE.js → chunk-YVLANFBK.js} +29 -1
- package/dist/{chunk-3L7M4E7W.js → chunk-YXKHBSQJ.js} +14 -188
- package/dist/{chunk-IMR3MZDP.js → chunk-Z6CIQQUZ.js} +3 -2
- package/dist/{chunk-ACDG3RAL.js → chunk-Z7XMG6DA.js} +89 -128
- package/dist/{chunk-4RT7P5ZQ.js → chunk-ZAANJVLM.js} +2 -2
- package/dist/{chunk-KAZ5BYTQ.js → chunk-ZAOEFQ6K.js} +5 -4
- package/dist/{chunk-SA3MMYXT.js → chunk-ZCQMFJ4X.js} +22 -10
- package/dist/{chunk-FEC24V7X.js → chunk-ZOTBKQLG.js} +2 -2
- package/dist/{chunk-COP7NFSJ.js → chunk-ZVPTNPLI.js} +3 -3
- package/dist/{collection-add-products-4ZTBHENL.js → collection-add-products-TRY52HYQ.js} +45 -46
- package/dist/{collection-create-GPBN7KO6.js → collection-create-7ZQONUJL.js} +89 -17
- package/dist/collection-detail-MQ7ZH6OT.js +104 -0
- package/dist/{collection-edit-NVRFKO46.js → collection-edit-ZFAECPWC.js} +35 -12
- package/dist/collection-icon-edit-642AZRHR.js +117 -0
- package/dist/collection-list-YMCTIJ52.js +85 -0
- package/dist/collection-media-LMJFEFVY.js +655 -0
- package/dist/{collection-metadata-E4C54MTU.js → collection-metadata-AZRN32RU.js} +34 -35
- package/dist/commission-rule-commission-edit-V5JVRNZN.js +195 -0
- package/dist/commission-rule-create-EZ2C6AWK.js +464 -0
- package/dist/commission-rule-detail-FOLHANWL.js +45 -0
- package/dist/commission-rule-edit-NQ5EYCGO.js +352 -0
- package/dist/commissions-list-56S53CQ4.js +36 -0
- package/dist/{constants-Bahlh59D.d.ts → constants-CBhKGpBZ.d.ts} +12 -5
- package/dist/{customer-create-QHA4KM6N.js → customer-create-SC6LAEVJ.js} +3 -3
- package/dist/{customer-create-address-TYWVWNUE.js → customer-create-address-VZMOF5AE.js} +11 -6
- package/dist/{customer-detail-ONZGPCHW.js → customer-detail-VIWHZUOZ.js} +51 -52
- package/dist/{customer-edit-JZ4PQTIN.js → customer-edit-RAWO66UL.js} +27 -9
- package/dist/customer-edit-address-ZEVUPAYN.js +311 -0
- package/dist/{customer-group-add-customers-VJUBEN7M.js → customer-group-add-customers-VKUSW6AS.js} +13 -13
- package/dist/{customer-group-create-NA2UKCF6.js → customer-group-create-3KAC3R3N.js} +3 -3
- package/dist/{customer-group-detail-XTCDJX7O.js → customer-group-detail-JVULZZTT.js} +51 -49
- package/dist/{customer-group-edit-3O6HAYYN.js → customer-group-edit-E7JX2L4J.js} +43 -22
- package/dist/customer-group-list-SKODEZKB.js +57 -0
- package/dist/{customer-group-metadata-N7HGHXNC.js → customer-group-metadata-3QRU7FIE.js} +34 -35
- package/dist/{customer-list-MB6WZFMA.js → customer-list-LYDL4IEG.js} +9 -9
- package/dist/{customer-metadata-63OWV4KB.js → customer-metadata-7DMBCQXW.js} +34 -35
- package/dist/{customers-add-customer-group-NUXPXNUC.js → customers-add-customer-group-FXRUE5SD.js} +46 -46
- package/dist/{edit-inventory-item-YOJTYA7H.js → edit-inventory-item-QPWV4MSP.js} +55 -41
- package/dist/{edit-inventory-item-attributes-JGY633F2.js → edit-inventory-item-attributes-J7WHYKMK.js} +33 -34
- package/dist/{edit-reservation-ACDUXG33.js → edit-reservation-PTUSCC6C.js} +29 -11
- package/dist/{edit-rules-4VAD5Q3L.js → edit-rules-2WZOLTL7.js} +34 -35
- package/dist/extension-targets.d.ts +269 -0
- package/dist/extension-targets.js +1 -0
- package/dist/global-commission-edit-TRSS5JBH.js +203 -0
- package/dist/index.css +5187 -3
- package/dist/index.d.ts +16 -5
- package/dist/index.js +405 -383
- package/dist/inventory-create-RDVKGH2S.js +58 -0
- package/dist/{inventory-detail-B3HU2OVR.js → inventory-detail-J7NMO7EZ.js} +50 -47
- package/dist/{inventory-list-AE44PEW7.js → inventory-list-XBDJ7BHE.js} +8 -8
- package/dist/{inventory-metadata-WCFTI7AH.js → inventory-metadata-CQHLKX4T.js} +34 -35
- package/dist/{inventory-stock-M65W4GRN.js → inventory-stock-3TR47RNA.js} +38 -39
- package/dist/{invite-VQ2HR2OM.js → invite-25CGHT4W.js} +3 -3
- package/dist/loader-TIPLOZF7.js +32 -0
- package/dist/loader-ZYV22XGC.js +40 -0
- package/dist/{location-create-ZMNB7YKR.js → location-create-GKORXOYD.js} +3 -3
- package/dist/{location-detail-2NCZD5MO.js → location-detail-DTBVSZBJ.js} +36 -37
- package/dist/{location-edit-DMBF3CYZ.js → location-edit-T2CWF6N2.js} +3 -3
- package/dist/{location-fulfillment-providers-3XKOFATD.js → location-fulfillment-providers-P5U5K4NO.js} +46 -47
- package/dist/location-list-LH27WJBT.js +54 -0
- package/dist/{location-sales-channels-TEUZYDTT.js → location-sales-channels-PRQUBZIV.js} +9 -10
- package/dist/{location-service-zone-create-ZS3UWJAA.js → location-service-zone-create-O6GYRZEE.js} +11 -11
- package/dist/{location-service-zone-edit-MTGU2O4C.js → location-service-zone-edit-7ZTB45TD.js} +5 -5
- package/dist/{location-service-zone-manage-areas-S7QZTIFT.js → location-service-zone-manage-areas-DBP3P27I.js} +11 -11
- package/dist/location-service-zone-shipping-option-create-Z3S7EUYH.js +60 -0
- package/dist/{location-service-zone-shipping-option-edit-3PGSNKYT.js → location-service-zone-shipping-option-edit-SLQM4GSH.js} +7 -7
- package/dist/{location-service-zone-shipping-option-pricing-POBJOF3Z.js → location-service-zone-shipping-option-pricing-UZ577SNK.js} +9 -9
- package/dist/{login-DJWU5X5L.js → login-JNIVGP2G.js} +32 -33
- package/dist/{manage-locations-E2XQPKKE.js → manage-locations-NGNUXP3N.js} +3 -3
- package/dist/{marketplace-add-currencies-6ANNBGZM.js → marketplace-add-currencies-IPE5RJF6.js} +13 -13
- package/dist/marketplace-detail-VNCNRAE4.js +75 -0
- package/dist/{marketplace-edit-6Q3G2OY5.js → marketplace-edit-WG6LMQ2P.js} +5 -5
- package/dist/{marketplace-metadata-7DNBHUDD.js → marketplace-metadata-74YUQ6UC.js} +34 -35
- package/dist/offer-detail-page-KQMSZLQN.js +631 -0
- package/dist/offer-variant-detail-page-GESVAA2S.js +144 -0
- package/dist/offers-NW24IATZ.js +198 -0
- package/dist/{order-create-claim-MPSXY24H.js → order-create-claim-Y7ESDXLI.js} +284 -259
- package/dist/{order-create-edit-6JLXERBY.js → order-create-edit-CAKL6MJQ.js} +215 -120
- package/dist/{order-create-exchange-O6COEAGJ.js → order-create-exchange-QGSECB7D.js} +302 -275
- package/dist/{order-create-refund-TCNCSOMX.js → order-create-refund-HXFCDZV5.js} +37 -38
- package/dist/{order-create-return-EVSD6GKE.js → order-create-return-R5WJBQ5W.js} +58 -31
- package/dist/{order-detail-BOW62X75.js → order-detail-DGZXN7IQ.js} +53 -51
- package/dist/{order-edit-billing-address-5ZBOWDWQ.js → order-edit-billing-address-ZAQ3FPRT.js} +35 -36
- package/dist/{order-edit-email-DQJW2SAM.js → order-edit-email-VSAS3M2E.js} +34 -35
- package/dist/{order-edit-shipping-address-RIML4XFQ.js → order-edit-shipping-address-FZMDRJU5.js} +34 -35
- package/dist/{order-list-U5DZYLJK.js → order-list-6LIYSO2R.js} +19 -18
- package/dist/{order-metadata-WGZUETFN.js → order-metadata-FKM3ZDNM.js} +34 -35
- package/dist/{order-request-transfer-QFUMEZPD.js → order-request-transfer-BCE6ED5E.js} +34 -35
- package/dist/pages/index.d.ts +574 -491
- package/dist/pages/index.js +204 -206
- package/dist/{payout-detail-TWO6HN4E.js → payout-detail-LY7SRCKO.js} +3 -3
- package/dist/{payout-list-7WJZFNW5.js → payout-list-VUJKOAOJ.js} +8 -8
- package/dist/{price-list-configuration-O3MR5IUA.js → price-list-configuration-DYFBYDQE.js} +14 -13
- package/dist/price-list-create-U2DMHUQE.js +77 -0
- package/dist/price-list-detail-CAK3AFSU.js +108 -0
- package/dist/{price-list-edit-OJAYEUYO.js → price-list-edit-4JPSL2NL.js} +28 -12
- package/dist/{price-list-list-ARICU2NA.js → price-list-list-PJIIPQOF.js} +11 -11
- package/dist/price-list-prices-add-6TO5RTTD.js +72 -0
- package/dist/{price-list-prices-edit-4HBSUC5W.js → price-list-prices-edit-AXJJTMKL.js} +35 -36
- package/dist/{product-add-existing-attributes-IHCIKDIH.js → product-add-existing-attributes-XIJB2NXI.js} +93 -54
- package/dist/{product-attributes-ZURXNZ3J.js → product-attributes-PCZDEFHM.js} +4 -4
- package/dist/{product-bulk-edit-LHCPVFUX.js → product-bulk-edit-FGB4T2KQ.js} +4 -4
- package/dist/product-create-KCMW6PCB.js +71 -0
- package/dist/{product-create-attribute-UBWABT2Q.js → product-create-attribute-6AJPI6IJ.js} +92 -54
- package/dist/{product-create-variant-MVYZPDO7.js → product-create-variant-2OCZA6GW.js} +8 -8
- package/dist/product-detail-A6DZWYEL.js +110 -0
- package/dist/{product-edit-EDW3D2KW.js → product-edit-KMK7CMLI.js} +9 -5
- package/dist/product-edit-attribute-FCEYWZWL.js +336 -0
- package/dist/product-list-CIHKL6N7.js +90 -0
- package/dist/{product-media-J3VTWOU4.js → product-media-P57SRDNX.js} +14 -17
- package/dist/{product-metadata-T2D4GEIP.js → product-metadata-6EFF4IPX.js} +35 -36
- package/dist/{product-organization-D6UMZAUE.js → product-organization-QNCCL277.js} +84 -51
- package/dist/{product-sales-channels-NTT6KMSD.js → product-sales-channels-GD7NYUP3.js} +8 -9
- package/dist/{product-shipping-profile-WM7LORFB.js → product-shipping-profile-UFIRKPTG.js} +4 -4
- package/dist/{product-tag-create-47G425O2.js → product-tag-create-PSY5Q437.js} +33 -34
- package/dist/{product-tag-detail-VNGOBWYE.js → product-tag-detail-D54OKWUZ.js} +58 -57
- package/dist/{product-tag-edit-DN7IVL75.js → product-tag-edit-NVGUS3CY.js} +33 -34
- package/dist/{product-tag-list-ZGRJZT2U.js → product-tag-list-QNWZAU5G.js} +58 -57
- package/dist/{product-tag-metadata-YLDBRJMI.js → product-tag-metadata-T4ZYOIXY.js} +34 -35
- package/dist/{product-type-create-RHG4KEAV.js → product-type-create-PPTAW3DW.js} +3 -3
- package/dist/{product-type-detail-MPONGCVO.js → product-type-detail-TXZ6HTOV.js} +44 -45
- package/dist/{product-type-edit-CABB7R7Y.js → product-type-edit-55AH3P7G.js} +3 -3
- package/dist/{product-type-list-TM26QMHR.js → product-type-list-OZILJZLG.js} +8 -8
- package/dist/{product-type-metadata-TDAER7JD.js → product-type-metadata-OJJYUALT.js} +34 -35
- package/dist/{product-variant-detail-5BF6JTHV.js → product-variant-detail-FZL5OZFE.js} +33 -34
- package/dist/{product-variant-edit-2RHFG2CZ.js → product-variant-edit-LSSJW4DS.js} +35 -36
- package/dist/{product-variant-metadata-G2LLH7YK.js → product-variant-metadata-D5AUINFJ.js} +34 -35
- package/dist/{profile-detail-ZRL5SERS.js → profile-detail-PFJX3LPX.js} +3 -3
- package/dist/{profile-edit-HQTWYWZ7.js → profile-edit-O6Z3XJ4U.js} +3 -3
- package/dist/{promotion-add-campaign-S3JJSFHT.js → promotion-add-campaign-PYEBYRHK.js} +7 -7
- package/dist/promotion-create-OFLXF3RZ.js +57 -0
- package/dist/promotion-detail-H6S4JYYD.js +96 -0
- package/dist/{promotion-edit-details-TKRC5HES.js → promotion-edit-details-GXA4FDTK.js} +29 -17
- package/dist/{promotion-list-AFBLWKTJ.js → promotion-list-A3V4W5DY.js} +10 -10
- package/dist/{refund-reason-create-6RPQHIJI.js → refund-reason-create-HTTX2UGC.js} +33 -34
- package/dist/{refund-reason-edit-W2TVZB3N.js → refund-reason-edit-I7XXP4EP.js} +33 -34
- package/dist/{refund-reason-list-TS6JWYS4.js → refund-reason-list-YYCNRERE.js} +49 -48
- package/dist/{region-add-countries-COXN4LP3.js → region-add-countries-UO5A42HM.js} +12 -12
- package/dist/{region-create-P66Q65XY.js → region-create-7NA6RKWS.js} +13 -13
- package/dist/{region-detail-P2HHBYFV.js → region-detail-VA4FGEKA.js} +9 -9
- package/dist/{region-edit-XFE54SAO.js → region-edit-Z4VYO3TQ.js} +5 -5
- package/dist/{region-list-2XXKCDDX.js → region-list-WU4LTP5Y.js} +9 -9
- package/dist/{region-metadata-TNSJDCBM.js → region-metadata-RRUP56B2.js} +34 -35
- package/dist/{reservation-create-2TDZAX5A.js → reservation-create-3RVQVMRF.js} +5 -5
- package/dist/{reservation-detail-KFOVTTFH.js → reservation-detail-QOVPIIMC.js} +42 -39
- package/dist/{reservation-list-K4RPXJTO.js → reservation-list-SGGW2MSN.js} +9 -9
- package/dist/{reservation-metadata-HBFAVVPW.js → reservation-metadata-OAEUUCRG.js} +34 -35
- package/dist/{reset-password-3NYZNQPK.js → reset-password-7KNQD6OM.js} +3 -3
- package/dist/{return-reason-create-KED7446I.js → return-reason-create-DYJCGEOK.js} +3 -3
- package/dist/{return-reason-edit-57EU3XSE.js → return-reason-edit-A7ATUTCD.js} +3 -3
- package/dist/{return-reason-list-WBLPUYD4.js → return-reason-list-HMSZJDKI.js} +23 -21
- package/dist/{sales-channel-add-products-IHGDKRKH.js → sales-channel-add-products-6TXYF3HM.js} +46 -47
- package/dist/{sales-channel-create-MPZCRQBT.js → sales-channel-create-77PRY5T6.js} +4 -4
- package/dist/{sales-channel-detail-QCFO7VUA.js → sales-channel-detail-SYE4FUXD.js} +43 -44
- package/dist/{sales-channel-edit-GILK4QK3.js → sales-channel-edit-PBN2XYEI.js} +4 -4
- package/dist/sales-channel-list-4CNHLSBR.js +52 -0
- package/dist/{sales-channel-metadata-OEQVWJRQ.js → sales-channel-metadata-RXT26TCT.js} +34 -35
- package/dist/{shipping-option-type-create-SMXDCF6I.js → shipping-option-type-create-2EVIHSGN.js} +33 -34
- package/dist/{shipping-option-type-detail-MO3YRUVR.js → shipping-option-type-detail-BKFYUX2T.js} +34 -35
- package/dist/{shipping-option-type-edit-KO64TZS6.js → shipping-option-type-edit-LTH6PE7B.js} +33 -34
- package/dist/shipping-option-type-list-7NSGG7ZI.js +60 -0
- package/dist/{shipping-profile-create-UJNCCKKK.js → shipping-profile-create-HKYX4FKJ.js} +3 -3
- package/dist/{shipping-profile-detail-YAKZHWZI.js → shipping-profile-detail-FOPCKNOZ.js} +3 -3
- package/dist/{shipping-profile-metadata-FLTMLAZN.js → shipping-profile-metadata-WRFZ55C3.js} +34 -35
- package/dist/{shipping-profiles-list-JF2SQIQ7.js → shipping-profiles-list-AKSZ4O35.js} +7 -7
- package/dist/{store-address-edit-PKIBRFH4.js → store-address-edit-M6A37RFY.js} +4 -4
- package/dist/{store-bulk-edit-LW6ABDJK.js → store-bulk-edit-SYHKAJ6D.js} +5 -5
- package/dist/{store-closure-edit-OK7MTUHY.js → store-closure-edit-VE7D5F7I.js} +3 -3
- package/dist/{store-create-STR6YNFJ.js → store-create-6OQW7F4U.js} +37 -38
- package/dist/store-details-45RPSTMU.js +104 -0
- package/dist/{store-edit-KRBR5MGV.js → store-edit-HABD7SAL.js} +59 -21
- package/dist/store-list-XZU26QTH.js +82 -0
- package/dist/{store-member-invite-AKH3KHMF.js → store-member-invite-T5GCT6HV.js} +6 -6
- package/dist/{store-payment-details-edit-HOGHZMZC.js → store-payment-details-edit-JUM745OG.js} +3 -3
- package/dist/{store-professional-details-edit-DPJ4ZFDR.js → store-professional-details-edit-NKBYKBCA.js} +3 -3
- package/dist/{tax-region-create-NEKIT7TT.js → tax-region-create-SKBBBZXJ.js} +34 -35
- package/dist/tax-region-detail-UGD2KK2H.js +69 -0
- package/dist/{tax-region-edit-4PJV5F5X.js → tax-region-edit-N64TGNAG.js} +33 -34
- package/dist/{tax-region-list-FIBHEFVD.js → tax-region-list-GRZIXRD4.js} +8 -8
- package/dist/{tax-region-metadata-EYRFMJLL.js → tax-region-metadata-MKXFQ5B7.js} +34 -35
- package/dist/{tax-region-province-create-OVLIZPNP.js → tax-region-province-create-7YT2LNJG.js} +3 -3
- package/dist/{tax-region-province-detail-MTHKW7LW.js → tax-region-province-detail-LITAO6EZ.js} +40 -41
- package/dist/{tax-region-tax-override-create-OGW3MPBD.js → tax-region-tax-override-create-NCAWHUOU.js} +61 -62
- package/dist/{tax-region-tax-override-edit-LTZCYN4Y.js → tax-region-tax-override-edit-OOP7RQZR.js} +61 -62
- package/dist/{tax-region-tax-rate-create-KDN6G52Y.js → tax-region-tax-rate-create-3ZLVL3X3.js} +4 -4
- package/dist/{tax-region-tax-rate-edit-D4BFDDJ7.js → tax-region-tax-rate-edit-XVMPIJOF.js} +4 -4
- package/dist/{user-detail-2OTVNTCL.js → user-detail-4FDNMJ6W.js} +4 -4
- package/dist/{user-edit-MXS2DV37.js → user-edit-T3MZKULQ.js} +3 -3
- package/dist/{user-invite-HLZJ7FST.js → user-invite-FCWARLW5.js} +11 -11
- package/dist/{user-list-TR7RSGUO.js → user-list-62A6ZMIX.js} +7 -7
- package/dist/{user-metadata-GIR3A7WO.js → user-metadata-5UFWFXLX.js} +34 -35
- package/package.json +25 -17
- package/dist/[id]-272FUOXG.js +0 -503
- package/dist/attribute-list-URWKNTSJ.js +0 -62
- package/dist/category-detail-RIKOZMPK.js +0 -108
- package/dist/category-organize-DQQGAAJY.js +0 -112
- package/dist/chunk-2XVH2IJL.js +0 -473
- package/dist/chunk-54RTJBYO.js +0 -153
- package/dist/chunk-6WBQDJIH.js +0 -1733
- package/dist/chunk-7O6WJTBI.js +0 -139
- package/dist/chunk-AKTAFKIU.js +0 -228
- package/dist/chunk-CKNQJPAG.js +0 -135
- package/dist/chunk-DDANJIE7.js +0 -207
- package/dist/chunk-GVEF6UDT.js +0 -8
- package/dist/chunk-J65IXAGI.js +0 -292
- package/dist/chunk-LFKTHNWI.js +0 -83
- package/dist/chunk-MSESXKMA.js +0 -390
- package/dist/chunk-RXM4B6HR.js +0 -8
- package/dist/chunk-SWL7ZCP3.js +0 -11
- package/dist/chunk-TE245WV3.js +0 -371
- package/dist/chunk-UM7ZR3VU.js +0 -14
- package/dist/chunk-V5XHY5LP.js +0 -39
- package/dist/chunk-ZZ3XFIEM.js +0 -84
- package/dist/collection-detail-W7OC2ALM.js +0 -99
- package/dist/collection-list-B7LALPSA.js +0 -83
- package/dist/commission-rate-create-7MEIKAXK.js +0 -783
- package/dist/commission-rate-detail-XBMB3Y7S.js +0 -86
- package/dist/commission-rate-edit-XXUAGK5Q.js +0 -768
- package/dist/commission-rate-list-Y5XLEO67.js +0 -26
- package/dist/customer-group-list-63ER7WQH.js +0 -58
- package/dist/inventory-create-3NJZLSFO.js +0 -59
- package/dist/loader-O4EABIXE.js +0 -26
- package/dist/location-list-VS6V2FXE.js +0 -55
- package/dist/location-service-zone-shipping-option-create-LAM3OHBC.js +0 -61
- package/dist/marketplace-detail-IQLU7R3J.js +0 -76
- package/dist/offers-UJCSO3RD.js +0 -440
- package/dist/order-allocate-items-TMVWJUV3.js +0 -563
- package/dist/order-create-fulfillment-Y4HQ5YRS.js +0 -644
- package/dist/order-create-shipment-EWOJJXEM.js +0 -215
- package/dist/order-receive-return-MDUU4L4X.js +0 -563
- package/dist/price-list-create-J4AJG42T.js +0 -78
- package/dist/price-list-detail-D2ETNZ5N.js +0 -105
- package/dist/price-list-prices-add-FQLQ5DPX.js +0 -73
- package/dist/product-brand-create-B3ZJGHUQ.js +0 -171
- package/dist/product-brand-detail-O7UKYV4H.js +0 -100
- package/dist/product-brand-edit-3TQDHZNN.js +0 -179
- package/dist/product-brand-list-ZBPBSRQN.js +0 -30
- package/dist/product-brand-metadata-N2CJ5K3Z.js +0 -87
- package/dist/product-create-BQXFDMEP.js +0 -72
- package/dist/product-detail-I57XSYLB.js +0 -102
- package/dist/product-list-PR532XII.js +0 -88
- package/dist/promotion-create-G3M4UJX2.js +0 -58
- package/dist/promotion-detail-4EHU6FKF.js +0 -91
- package/dist/sales-channel-list-YNHR5EHL.js +0 -54
- package/dist/shipping-option-type-list-6C26GWDM.js +0 -61
- package/dist/store-details-3U4OEFWC.js +0 -122
- package/dist/store-list-PJ3U254I.js +0 -83
- package/dist/tax-region-detail-LVN5XSN5.js +0 -70
|
@@ -1,18 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useOrderTableColumns
|
|
3
|
+
} from "./chunk-DBYUB2YI.js";
|
|
1
4
|
import {
|
|
2
5
|
IconAvatar
|
|
3
6
|
} from "./chunk-U2EI2ZLM.js";
|
|
4
7
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
useOfferTableColumns,
|
|
9
|
+
useOfferTableCommands,
|
|
10
|
+
useOfferTableFilters,
|
|
11
|
+
useOfferTableQuery
|
|
12
|
+
} from "./chunk-ODDJZVYL.js";
|
|
7
13
|
import {
|
|
8
14
|
useOrderTableFilters
|
|
9
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UK5BVJI7.js";
|
|
16
|
+
import {
|
|
17
|
+
useOffers
|
|
18
|
+
} from "./chunk-IZDTQFCP.js";
|
|
10
19
|
import {
|
|
11
20
|
useMemberTableQuery
|
|
12
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IJ2CSCLP.js";
|
|
13
22
|
import {
|
|
14
23
|
useOrderTableQuery
|
|
15
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QUHSHIAC.js";
|
|
16
25
|
import {
|
|
17
26
|
DateCell
|
|
18
27
|
} from "./chunk-25LYVP3C.js";
|
|
@@ -20,34 +29,26 @@ import {
|
|
|
20
29
|
DataTableStatusCell
|
|
21
30
|
} from "./chunk-MDABSESI.js";
|
|
22
31
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
useProductTableFilters
|
|
27
|
-
} from "./chunk-NMFVQDVF.js";
|
|
32
|
+
currencies
|
|
33
|
+
} from "./chunk-IQPN4PZJ.js";
|
|
28
34
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./chunk-
|
|
35
|
+
TwoColumnPage
|
|
36
|
+
} from "./chunk-E74OUNA3.js";
|
|
31
37
|
import {
|
|
32
38
|
_DataTable,
|
|
33
39
|
useDataTable
|
|
34
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
35
41
|
import {
|
|
36
42
|
NoRecords
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
currencies
|
|
40
|
-
} from "./chunk-IQPN4PZJ.js";
|
|
41
|
-
import {
|
|
42
|
-
TwoColumnPage
|
|
43
|
-
} from "./chunk-E74OUNA3.js";
|
|
43
|
+
} from "./chunk-PAYQJPGK.js";
|
|
44
44
|
import {
|
|
45
45
|
require_dist
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-VYSB4CTB.js";
|
|
47
47
|
import {
|
|
48
48
|
useOrders
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-WF3ZDT5Z.js";
|
|
50
50
|
import {
|
|
51
|
+
sellersQueryKeys,
|
|
51
52
|
useApproveSeller,
|
|
52
53
|
useDeleteSellerInvite,
|
|
53
54
|
useRemoveSellerMember,
|
|
@@ -55,29 +56,54 @@ import {
|
|
|
55
56
|
useSeller,
|
|
56
57
|
useSellerInvites,
|
|
57
58
|
useSellerMembers,
|
|
58
|
-
useSellerProducts,
|
|
59
59
|
useSuspendSeller
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-SAU35JEB.js";
|
|
61
61
|
import {
|
|
62
62
|
ActionMenu
|
|
63
63
|
} from "./chunk-BDGZ4EQO.js";
|
|
64
64
|
import {
|
|
65
65
|
TwoColumnPageSkeleton
|
|
66
66
|
} from "./chunk-INNFZYX2.js";
|
|
67
|
+
import {
|
|
68
|
+
queryClient
|
|
69
|
+
} from "./chunk-RHKRREUU.js";
|
|
70
|
+
import {
|
|
71
|
+
sdk
|
|
72
|
+
} from "./chunk-LXZXXOJ3.js";
|
|
67
73
|
import {
|
|
68
74
|
__toESM
|
|
69
75
|
} from "./chunk-NBMM2TZK.js";
|
|
70
76
|
|
|
77
|
+
// src/pages/stores/store-details/loader.ts
|
|
78
|
+
import { getLinkQuery } from "@mercurjs/dashboard-shared";
|
|
79
|
+
var STORE_DETAIL_FIELDS = "+address.*,+payment_details.*,+professional_details.*";
|
|
80
|
+
var sellerDetailQuery = (id) => {
|
|
81
|
+
const query = getLinkQuery("seller", STORE_DETAIL_FIELDS);
|
|
82
|
+
return {
|
|
83
|
+
queryKey: sellersQueryKeys.detail(id, query),
|
|
84
|
+
queryFn: async () => sdk.admin.sellers.$id.query({ $id: id, ...query })
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
var storeDetailLoader = async ({ params }) => {
|
|
88
|
+
const id = params.id;
|
|
89
|
+
return queryClient.ensureQueryData({
|
|
90
|
+
...sellerDetailQuery(id),
|
|
91
|
+
staleTime: 9e4
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
71
95
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
72
|
-
import { Children as Children3, useState as
|
|
96
|
+
import { Children as Children3, useState as useState3 } from "react";
|
|
73
97
|
import { useParams } from "react-router-dom";
|
|
74
98
|
import { useTranslation as useTranslation12 } from "react-i18next";
|
|
99
|
+
import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
75
100
|
var import_types3 = __toESM(require_dist(), 1);
|
|
76
101
|
|
|
77
102
|
// src/pages/stores/store-details/components/store-general-section.tsx
|
|
78
103
|
import { Children as Children2 } from "react";
|
|
79
104
|
import { Badge, Container, Text } from "@medusajs/ui";
|
|
80
105
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
106
|
+
import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
|
|
81
107
|
|
|
82
108
|
// src/pages/stores/store-details/components/store-detail-header.tsx
|
|
83
109
|
import { Children } from "react";
|
|
@@ -216,33 +242,49 @@ var StoreGeneralSection = ({
|
|
|
216
242
|
}
|
|
217
243
|
) }) }),
|
|
218
244
|
/* @__PURE__ */ jsx2(StoreDetailHeader, { seller }),
|
|
219
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
245
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "description", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
220
246
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
|
|
221
247
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.description || "-" })
|
|
222
|
-
] }),
|
|
223
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
248
|
+
] }) }),
|
|
249
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "handle", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
224
250
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
225
251
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
|
|
226
|
-
] }),
|
|
227
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
252
|
+
] }) }),
|
|
253
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "email", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
228
254
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
229
255
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
230
|
-
] }),
|
|
231
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
256
|
+
] }) }),
|
|
257
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "phone", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
232
258
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
|
|
233
259
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.phone || "-" })
|
|
234
|
-
] }),
|
|
235
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
260
|
+
] }) }),
|
|
261
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "website_url", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
236
262
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
|
|
237
263
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.website_url || "-" })
|
|
238
|
-
] }),
|
|
239
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
264
|
+
] }) }),
|
|
265
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "currency_code", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
240
266
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
|
|
241
267
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
|
|
242
268
|
/* @__PURE__ */ jsx2(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
|
|
243
269
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: currencies[seller.currency_code?.toUpperCase()]?.name || "-" })
|
|
244
270
|
] })
|
|
245
|
-
] })
|
|
271
|
+
] }) }),
|
|
272
|
+
/* @__PURE__ */ jsx2(
|
|
273
|
+
DisplayExtensionZone,
|
|
274
|
+
{
|
|
275
|
+
model: "seller",
|
|
276
|
+
zone: "general",
|
|
277
|
+
data: seller,
|
|
278
|
+
builtInFieldIds: [
|
|
279
|
+
"description",
|
|
280
|
+
"handle",
|
|
281
|
+
"email",
|
|
282
|
+
"phone",
|
|
283
|
+
"website_url",
|
|
284
|
+
"currency_code"
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
)
|
|
246
288
|
] }) });
|
|
247
289
|
};
|
|
248
290
|
|
|
@@ -250,6 +292,7 @@ var StoreGeneralSection = ({
|
|
|
250
292
|
import { CreditCard, PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
251
293
|
import { Container as Container2, Heading as Heading2, Text as Text2 } from "@medusajs/ui";
|
|
252
294
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
295
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
253
296
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
254
297
|
var StorePaymentDetailsSection = ({
|
|
255
298
|
seller
|
|
@@ -296,7 +339,8 @@ var StorePaymentDetailsSection = ({
|
|
|
296
339
|
] }) }) }) : /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
297
340
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("store.paymentDetails.empty.title") }),
|
|
298
341
|
/* @__PURE__ */ jsx3(Text2, { size: "small", className: "text-ui-fg-muted", children: t("store.paymentDetails.empty.message") })
|
|
299
|
-
] })
|
|
342
|
+
] }),
|
|
343
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone2, { model: "seller", zone: "payment-details", data: seller })
|
|
300
344
|
] });
|
|
301
345
|
};
|
|
302
346
|
|
|
@@ -304,6 +348,7 @@ var StorePaymentDetailsSection = ({
|
|
|
304
348
|
import { Buildings, PencilSquare as PencilSquare3 } from "@medusajs/icons";
|
|
305
349
|
import { Container as Container3, Heading as Heading3, Text as Text3 } from "@medusajs/ui";
|
|
306
350
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
351
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
307
352
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
308
353
|
var StoreCompanyDetailsSection = ({
|
|
309
354
|
seller
|
|
@@ -348,7 +393,8 @@ var StoreCompanyDetailsSection = ({
|
|
|
348
393
|
] }) }) }) : /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
349
394
|
/* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("store.professionalDetails.empty.title") }),
|
|
350
395
|
/* @__PURE__ */ jsx4(Text3, { size: "small", className: "text-ui-fg-muted", children: t("store.professionalDetails.empty.message") })
|
|
351
|
-
] })
|
|
396
|
+
] }),
|
|
397
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "seller", zone: "company-details", data: seller })
|
|
352
398
|
] });
|
|
353
399
|
};
|
|
354
400
|
|
|
@@ -356,6 +402,7 @@ var StoreCompanyDetailsSection = ({
|
|
|
356
402
|
import { CalendarMini } from "@medusajs/icons";
|
|
357
403
|
import { Container as Container4, Heading as Heading4, Table } from "@medusajs/ui";
|
|
358
404
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
405
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
359
406
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
360
407
|
var StoreConfigurationSection = ({
|
|
361
408
|
seller
|
|
@@ -382,7 +429,8 @@ var StoreConfigurationSection = ({
|
|
|
382
429
|
title: t("store.timeOff.empty.title"),
|
|
383
430
|
message: t("store.timeOff.empty.message")
|
|
384
431
|
}
|
|
385
|
-
)
|
|
432
|
+
),
|
|
433
|
+
/* @__PURE__ */ jsx5(DisplayExtensionZone4, { model: "seller", zone: "configuration", data: seller })
|
|
386
434
|
] });
|
|
387
435
|
};
|
|
388
436
|
|
|
@@ -390,6 +438,7 @@ var StoreConfigurationSection = ({
|
|
|
390
438
|
import { BuildingStorefront, PencilSquare as PencilSquare4 } from "@medusajs/icons";
|
|
391
439
|
import { Container as Container5, Heading as Heading5, Text as Text4 } from "@medusajs/ui";
|
|
392
440
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
441
|
+
import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
|
|
393
442
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
394
443
|
var StoreAddressSection = ({ seller }) => {
|
|
395
444
|
const { t } = useTranslation6();
|
|
@@ -441,7 +490,8 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
441
490
|
] }) }) }) : /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
442
491
|
/* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: t("store.address.empty.title") }),
|
|
443
492
|
/* @__PURE__ */ jsx6(Text4, { size: "small", className: "text-ui-fg-muted", children: t("store.address.empty.message") })
|
|
444
|
-
] })
|
|
493
|
+
] }),
|
|
494
|
+
/* @__PURE__ */ jsx6(DisplayExtensionZone5, { model: "seller", zone: "address", data: seller })
|
|
445
495
|
] });
|
|
446
496
|
};
|
|
447
497
|
|
|
@@ -449,6 +499,7 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
449
499
|
import { Button, Container as Container6, Heading as Heading6 } from "@medusajs/ui";
|
|
450
500
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
451
501
|
import { Link } from "react-router-dom";
|
|
502
|
+
import { DisplayExtensionZone as DisplayExtensionZone6 } from "@mercurjs/dashboard-shared";
|
|
452
503
|
|
|
453
504
|
// src/pages/stores/store-details/components/store-members-section/store-members-data-table.tsx
|
|
454
505
|
import { useMemo } from "react";
|
|
@@ -552,7 +603,7 @@ var StoreMembersDataTable = ({
|
|
|
552
603
|
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
553
604
|
],
|
|
554
605
|
noRecords: {
|
|
555
|
-
title: t("stores.emptyStates.users.title"
|
|
606
|
+
title: t("stores.emptyStates.users.title"),
|
|
556
607
|
message: t(
|
|
557
608
|
"stores.emptyStates.users.message",
|
|
558
609
|
"Invite the first user to manage this store."
|
|
@@ -577,7 +628,7 @@ var useColumns = (sellerId) => {
|
|
|
577
628
|
size: "2xsmall",
|
|
578
629
|
color: "grey",
|
|
579
630
|
className: "flex-shrink-0",
|
|
580
|
-
children: t("stores.members.mainAdmin"
|
|
631
|
+
children: t("stores.members.mainAdmin")
|
|
581
632
|
}
|
|
582
633
|
)
|
|
583
634
|
] })
|
|
@@ -735,10 +786,11 @@ var StoreMembersSection = ({ sellerId }) => {
|
|
|
735
786
|
const { t } = useTranslation8();
|
|
736
787
|
return /* @__PURE__ */ jsxs8(Container6, { className: "divide-y p-0", children: [
|
|
737
788
|
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
738
|
-
/* @__PURE__ */ jsx8(Heading6, { level: "h2", children: t("users.domain"
|
|
739
|
-
/* @__PURE__ */ jsx8(Link, { to: "invite", children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", children: t("stores.members.addUser.action"
|
|
789
|
+
/* @__PURE__ */ jsx8(Heading6, { level: "h2", children: t("users.domain") }),
|
|
790
|
+
/* @__PURE__ */ jsx8(Link, { to: "invite", children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", children: t("stores.members.addUser.action") }) })
|
|
740
791
|
] }),
|
|
741
|
-
/* @__PURE__ */ jsx8(StoreMembersDataTable, { sellerId })
|
|
792
|
+
/* @__PURE__ */ jsx8(StoreMembersDataTable, { sellerId }),
|
|
793
|
+
/* @__PURE__ */ jsx8(DisplayExtensionZone6, { model: "seller", zone: "members", data: sellerId })
|
|
742
794
|
] });
|
|
743
795
|
};
|
|
744
796
|
|
|
@@ -755,6 +807,7 @@ import {
|
|
|
755
807
|
toast as toast2
|
|
756
808
|
} from "@medusajs/ui";
|
|
757
809
|
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
810
|
+
import { DisplayExtensionZone as DisplayExtensionZone7 } from "@mercurjs/dashboard-shared";
|
|
758
811
|
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
759
812
|
var StoreRequestSection = ({ seller }) => {
|
|
760
813
|
const { t } = useTranslation9();
|
|
@@ -777,7 +830,7 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
777
830
|
RequestActionPrompt,
|
|
778
831
|
{
|
|
779
832
|
trigger: /* @__PURE__ */ jsx9(Button2, { size: "small", variant: "secondary", children: t("stores.request.confirm") }),
|
|
780
|
-
title: t("stores.request.confirmTitle"
|
|
833
|
+
title: t("stores.request.confirmTitle"),
|
|
781
834
|
description: t(
|
|
782
835
|
"stores.request.confirmDescription",
|
|
783
836
|
"You are about to confirm this store request."
|
|
@@ -803,7 +856,7 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
803
856
|
RequestActionPrompt,
|
|
804
857
|
{
|
|
805
858
|
trigger: /* @__PURE__ */ jsx9(Button2, { size: "small", variant: "secondary", children: t("stores.request.reject") }),
|
|
806
|
-
title: t("stores.request.rejectTitle"
|
|
859
|
+
title: t("stores.request.rejectTitle"),
|
|
807
860
|
description: t(
|
|
808
861
|
"stores.request.rejectDescription",
|
|
809
862
|
"You are about to reject this store request."
|
|
@@ -825,7 +878,8 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
825
878
|
}
|
|
826
879
|
}
|
|
827
880
|
)
|
|
828
|
-
] })
|
|
881
|
+
] }),
|
|
882
|
+
/* @__PURE__ */ jsx9(DisplayExtensionZone7, { model: "seller", zone: "requests", data: seller })
|
|
829
883
|
] });
|
|
830
884
|
};
|
|
831
885
|
var RequestActionPrompt = ({
|
|
@@ -858,11 +912,11 @@ var RequestActionPrompt = ({
|
|
|
858
912
|
/* @__PURE__ */ jsx9("div", { className: "border-ui-border-base border-t mt-3" }),
|
|
859
913
|
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-3 px-6 py-3", children: [
|
|
860
914
|
/* @__PURE__ */ jsxs9(Text5, { size: "small", weight: "plus", className: "text-ui-fg-base", children: [
|
|
861
|
-
t("stores.request.noteLabel"
|
|
915
|
+
t("stores.request.noteLabel"),
|
|
862
916
|
" ",
|
|
863
917
|
/* @__PURE__ */ jsxs9("span", { className: "text-ui-fg-muted font-normal", children: [
|
|
864
918
|
"(",
|
|
865
|
-
t("fields.optional"
|
|
919
|
+
t("fields.optional"),
|
|
866
920
|
")"
|
|
867
921
|
] })
|
|
868
922
|
] }),
|
|
@@ -898,6 +952,7 @@ import { ShoppingCart } from "@medusajs/icons";
|
|
|
898
952
|
import { Container as Container8, Heading as Heading8 } from "@medusajs/ui";
|
|
899
953
|
import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
|
|
900
954
|
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
955
|
+
import { DisplayExtensionZone as DisplayExtensionZone8 } from "@mercurjs/dashboard-shared";
|
|
901
956
|
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
902
957
|
var PAGE_SIZE2 = 10;
|
|
903
958
|
var PREFIX = "store-orders";
|
|
@@ -963,7 +1018,7 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
963
1018
|
queryObject: raw,
|
|
964
1019
|
prefix: PREFIX,
|
|
965
1020
|
noRecords: {
|
|
966
|
-
title: t("stores.emptyStates.orders.title"
|
|
1021
|
+
title: t("stores.emptyStates.orders.title"),
|
|
967
1022
|
message: t(
|
|
968
1023
|
"stores.emptyStates.orders.message",
|
|
969
1024
|
"Orders placed at this store will appear here."
|
|
@@ -971,90 +1026,98 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
971
1026
|
icon: /* @__PURE__ */ jsx10(ShoppingCart, { className: "text-ui-fg-subtle" })
|
|
972
1027
|
}
|
|
973
1028
|
}
|
|
974
|
-
)
|
|
1029
|
+
),
|
|
1030
|
+
/* @__PURE__ */ jsx10(DisplayExtensionZone8, { model: "seller", zone: "orders", data: sellerId })
|
|
975
1031
|
] });
|
|
976
1032
|
};
|
|
977
1033
|
|
|
978
|
-
// src/pages/stores/store-details/components/store-
|
|
1034
|
+
// src/pages/stores/store-details/components/store-offers-section.tsx
|
|
979
1035
|
import { Tag } from "@medusajs/icons";
|
|
980
1036
|
import { Container as Container9, Heading as Heading9 } from "@medusajs/ui";
|
|
981
1037
|
import { keepPreviousData as keepPreviousData3 } from "@tanstack/react-query";
|
|
1038
|
+
import { useState as useState2 } from "react";
|
|
982
1039
|
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
1040
|
+
import { DisplayExtensionZone as DisplayExtensionZone9 } from "@mercurjs/dashboard-shared";
|
|
983
1041
|
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
984
1042
|
var PAGE_SIZE3 = 10;
|
|
985
|
-
var PREFIX2 = "store-
|
|
986
|
-
var
|
|
987
|
-
sellerId
|
|
988
|
-
}) => {
|
|
1043
|
+
var PREFIX2 = "store-offers";
|
|
1044
|
+
var StoreOffersSection = ({ sellerId }) => {
|
|
989
1045
|
const { t } = useTranslation11();
|
|
990
|
-
const
|
|
1046
|
+
const [selection, setSelection] = useState2({});
|
|
1047
|
+
const { raw, searchParams } = useOfferTableQuery({
|
|
991
1048
|
pageSize: PAGE_SIZE3,
|
|
992
1049
|
prefix: PREFIX2
|
|
993
1050
|
});
|
|
994
|
-
const {
|
|
995
|
-
sellerId,
|
|
996
|
-
|
|
997
|
-
{
|
|
998
|
-
placeholderData: keepPreviousData3
|
|
999
|
-
}
|
|
1051
|
+
const { offers, count, isLoading, isError, error } = useOffers(
|
|
1052
|
+
{ ...searchParams, seller_id: [sellerId] },
|
|
1053
|
+
{ placeholderData: keepPreviousData3 }
|
|
1000
1054
|
);
|
|
1001
|
-
const
|
|
1002
|
-
const
|
|
1055
|
+
const rows = offers ?? [];
|
|
1056
|
+
const columns = useOfferTableColumns({ hideStoreAction: true });
|
|
1057
|
+
const filters = useOfferTableFilters().filter((f) => f.key !== "seller_id");
|
|
1058
|
+
const commands = useOfferTableCommands({
|
|
1059
|
+
onDeleted: () => setSelection({})
|
|
1060
|
+
});
|
|
1003
1061
|
const { table } = useDataTable({
|
|
1062
|
+
data: rows,
|
|
1004
1063
|
columns,
|
|
1005
|
-
data: products ?? [],
|
|
1006
1064
|
count,
|
|
1065
|
+
enablePagination: true,
|
|
1007
1066
|
getRowId: (row) => row.id,
|
|
1008
1067
|
pageSize: PAGE_SIZE3,
|
|
1009
|
-
prefix: PREFIX2
|
|
1068
|
+
prefix: PREFIX2,
|
|
1069
|
+
enableRowSelection: true,
|
|
1070
|
+
rowSelection: {
|
|
1071
|
+
state: selection,
|
|
1072
|
+
updater: setSelection
|
|
1073
|
+
}
|
|
1010
1074
|
});
|
|
1011
1075
|
if (isError) {
|
|
1012
1076
|
throw error;
|
|
1013
1077
|
}
|
|
1014
|
-
return /* @__PURE__ */ jsxs11(Container9, { className: "divide-y p-0", "data-testid": "store-
|
|
1078
|
+
return /* @__PURE__ */ jsxs11(Container9, { className: "divide-y p-0", "data-testid": "store-offers-section", children: [
|
|
1015
1079
|
/* @__PURE__ */ jsx11(
|
|
1016
1080
|
"div",
|
|
1017
1081
|
{
|
|
1018
1082
|
className: "flex items-center justify-between px-6 py-4",
|
|
1019
|
-
"data-testid": "store-
|
|
1020
|
-
children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-
|
|
1083
|
+
"data-testid": "store-offers-section-header",
|
|
1084
|
+
children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-offers-section-heading", children: t("offers.domain") })
|
|
1021
1085
|
}
|
|
1022
1086
|
),
|
|
1023
1087
|
/* @__PURE__ */ jsx11(
|
|
1024
1088
|
_DataTable,
|
|
1025
1089
|
{
|
|
1026
1090
|
table,
|
|
1027
|
-
filters,
|
|
1028
|
-
isLoading: isPending,
|
|
1029
1091
|
columns,
|
|
1030
|
-
count,
|
|
1031
1092
|
pageSize: PAGE_SIZE3,
|
|
1032
|
-
|
|
1093
|
+
count,
|
|
1094
|
+
isLoading,
|
|
1095
|
+
pagination: true,
|
|
1096
|
+
search: true,
|
|
1097
|
+
filters,
|
|
1098
|
+
queryObject: raw,
|
|
1099
|
+
prefix: PREFIX2,
|
|
1033
1100
|
orderBy: [
|
|
1034
|
-
{ key: "title", label: t("fields.title") },
|
|
1035
1101
|
{ key: "created_at", label: t("fields.createdAt") },
|
|
1036
1102
|
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
1037
1103
|
],
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
pagination: true,
|
|
1041
|
-
prefix: PREFIX2,
|
|
1104
|
+
defaultOrder: "-created_at",
|
|
1105
|
+
navigateTo: (row) => `/offers/${row.original.product_id}?seller_id=${row.original.seller_id}`,
|
|
1042
1106
|
noRecords: {
|
|
1043
|
-
title: t("
|
|
1044
|
-
message: t(
|
|
1045
|
-
"stores.emptyStates.products.message",
|
|
1046
|
-
"Products published by this store will appear here."
|
|
1047
|
-
),
|
|
1107
|
+
title: t("offers.empty.heading"),
|
|
1108
|
+
message: t("offers.empty.storeDescription"),
|
|
1048
1109
|
icon: /* @__PURE__ */ jsx11(Tag, { className: "text-ui-fg-subtle" })
|
|
1049
|
-
}
|
|
1110
|
+
},
|
|
1111
|
+
commands
|
|
1050
1112
|
}
|
|
1051
|
-
)
|
|
1113
|
+
),
|
|
1114
|
+
/* @__PURE__ */ jsx11(DisplayExtensionZone9, { model: "seller", zone: "offers", data: sellerId })
|
|
1052
1115
|
] });
|
|
1053
1116
|
};
|
|
1054
1117
|
|
|
1055
1118
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
1056
1119
|
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1057
|
-
var TABS = ["orders", "
|
|
1120
|
+
var TABS = ["orders", "offers", "users", "timeOff"];
|
|
1058
1121
|
var TabBar = ({
|
|
1059
1122
|
activeTab,
|
|
1060
1123
|
onTabChange
|
|
@@ -1063,7 +1126,7 @@ var TabBar = ({
|
|
|
1063
1126
|
const labels = {
|
|
1064
1127
|
orders: t("orders.domain"),
|
|
1065
1128
|
users: t("users.domain"),
|
|
1066
|
-
|
|
1129
|
+
offers: t("offers.domain"),
|
|
1067
1130
|
timeOff: t("store.timeOff.header")
|
|
1068
1131
|
};
|
|
1069
1132
|
return /* @__PURE__ */ jsx12(
|
|
@@ -1071,7 +1134,7 @@ var TabBar = ({
|
|
|
1071
1134
|
{
|
|
1072
1135
|
role: "tablist",
|
|
1073
1136
|
"aria-label": t("stores.domain"),
|
|
1074
|
-
className: "flex flex-wrap items-center gap-x-
|
|
1137
|
+
className: "mt-1 flex flex-wrap items-center gap-x-2",
|
|
1075
1138
|
"data-testid": "store-detail-tabs",
|
|
1076
1139
|
children: TABS.map((tab) => {
|
|
1077
1140
|
const isActive = activeTab === tab;
|
|
@@ -1085,7 +1148,7 @@ var TabBar = ({
|
|
|
1085
1148
|
"aria-controls": `store-detail-tab-panel-${tab}`,
|
|
1086
1149
|
id: `store-detail-tab-${tab}`,
|
|
1087
1150
|
"data-testid": `store-detail-tab-${tab}`,
|
|
1088
|
-
className: `txt-compact-
|
|
1151
|
+
className: `txt-compact-small-plus rounded-full px-3 py-1.5 transition-colors ${isActive ? "border-ui-border-base bg-ui-bg-base shadow-borders-base text-ui-fg-base" : "text-ui-fg-subtle hover:text-ui-fg-base"}`,
|
|
1089
1152
|
children: labels[tab]
|
|
1090
1153
|
},
|
|
1091
1154
|
tab
|
|
@@ -1096,8 +1159,9 @@ var TabBar = ({
|
|
|
1096
1159
|
};
|
|
1097
1160
|
var Root = ({ children }) => {
|
|
1098
1161
|
const { id } = useParams();
|
|
1099
|
-
const [activeTab, setActiveTab] =
|
|
1100
|
-
const
|
|
1162
|
+
const [activeTab, setActiveTab] = useState3("orders");
|
|
1163
|
+
const query = useLinkQuery("seller", STORE_DETAIL_FIELDS);
|
|
1164
|
+
const { seller, isLoading, isError, error } = useSeller(id, query);
|
|
1101
1165
|
if (isLoading || !seller) {
|
|
1102
1166
|
return /* @__PURE__ */ jsx12(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 3 });
|
|
1103
1167
|
}
|
|
@@ -1108,7 +1172,7 @@ var Root = ({ children }) => {
|
|
|
1108
1172
|
return /* @__PURE__ */ jsx12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children });
|
|
1109
1173
|
}
|
|
1110
1174
|
return /* @__PURE__ */ jsxs12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
|
|
1111
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ jsx12(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs12(WidgetZone, { id: "stores.detail.main", data: seller, children: [
|
|
1112
1176
|
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */ jsx12(StoreRequestSection, { seller }),
|
|
1113
1177
|
/* @__PURE__ */ jsx12(StoreGeneralSection, { seller }),
|
|
1114
1178
|
/* @__PURE__ */ jsx12(TabBar, { activeTab, onTabChange: setActiveTab }),
|
|
@@ -1130,13 +1194,13 @@ var Root = ({ children }) => {
|
|
|
1130
1194
|
children: /* @__PURE__ */ jsx12(StoreMembersSection, { sellerId: seller.id })
|
|
1131
1195
|
}
|
|
1132
1196
|
),
|
|
1133
|
-
activeTab === "
|
|
1197
|
+
activeTab === "offers" && /* @__PURE__ */ jsx12(
|
|
1134
1198
|
"div",
|
|
1135
1199
|
{
|
|
1136
1200
|
role: "tabpanel",
|
|
1137
|
-
id: "store-detail-tab-panel-
|
|
1138
|
-
"aria-labelledby": "store-detail-tab-
|
|
1139
|
-
children: /* @__PURE__ */ jsx12(
|
|
1201
|
+
id: "store-detail-tab-panel-offers",
|
|
1202
|
+
"aria-labelledby": "store-detail-tab-offers",
|
|
1203
|
+
children: /* @__PURE__ */ jsx12(StoreOffersSection, { sellerId: seller.id })
|
|
1140
1204
|
}
|
|
1141
1205
|
),
|
|
1142
1206
|
activeTab === "timeOff" && /* @__PURE__ */ jsx12(
|
|
@@ -1148,12 +1212,12 @@ var Root = ({ children }) => {
|
|
|
1148
1212
|
children: /* @__PURE__ */ jsx12(StoreConfigurationSection, { seller })
|
|
1149
1213
|
}
|
|
1150
1214
|
)
|
|
1151
|
-
] }),
|
|
1152
|
-
/* @__PURE__ */
|
|
1215
|
+
] }) }),
|
|
1216
|
+
/* @__PURE__ */ jsx12(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs12(WidgetZone, { id: "stores.detail.side", data: seller, children: [
|
|
1153
1217
|
/* @__PURE__ */ jsx12(StoreAddressSection, { seller }),
|
|
1154
1218
|
/* @__PURE__ */ jsx12(StoreCompanyDetailsSection, { seller }),
|
|
1155
1219
|
/* @__PURE__ */ jsx12(StorePaymentDetailsSection, { seller })
|
|
1156
|
-
] })
|
|
1220
|
+
] }) })
|
|
1157
1221
|
] });
|
|
1158
1222
|
};
|
|
1159
1223
|
var StoreDetailPage = Object.assign(Root, {
|
|
@@ -1172,5 +1236,6 @@ var StoreDetailPage = Object.assign(Root, {
|
|
|
1172
1236
|
});
|
|
1173
1237
|
|
|
1174
1238
|
export {
|
|
1239
|
+
storeDetailLoader,
|
|
1175
1240
|
StoreDetailPage
|
|
1176
1241
|
};
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCollectionGallery
|
|
3
|
+
} from "./chunk-VM56ZITS.js";
|
|
1
4
|
import {
|
|
2
5
|
TextCell
|
|
3
6
|
} from "./chunk-JHIMVLB2.js";
|
|
7
|
+
import {
|
|
8
|
+
Thumbnail
|
|
9
|
+
} from "./chunk-WIYFXWRI.js";
|
|
4
10
|
|
|
5
11
|
// src/hooks/table/columns/use-collection-table-columns.tsx
|
|
6
12
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
7
13
|
import { useMemo } from "react";
|
|
8
14
|
import { useTranslation } from "react-i18next";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
16
|
var columnHelper = createColumnHelper();
|
|
11
17
|
var useCollectionTableColumns = () => {
|
|
12
18
|
const { t } = useTranslation();
|
|
@@ -14,7 +20,16 @@ var useCollectionTableColumns = () => {
|
|
|
14
20
|
() => [
|
|
15
21
|
columnHelper.accessor("title", {
|
|
16
22
|
header: t("fields.title"),
|
|
17
|
-
cell: ({ getValue }) =>
|
|
23
|
+
cell: ({ getValue, row }) => {
|
|
24
|
+
const gallery = getCollectionGallery(
|
|
25
|
+
row.original.media_images
|
|
26
|
+
);
|
|
27
|
+
const thumbnailSrc = gallery.find((image) => image.is_thumbnail)?.url ?? gallery[0]?.url ?? null;
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex size-full items-center gap-x-3 overflow-hidden", children: [
|
|
29
|
+
/* @__PURE__ */ jsx(Thumbnail, { src: thumbnailSrc }),
|
|
30
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: getValue() })
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
18
33
|
}),
|
|
19
34
|
columnHelper.accessor("handle", {
|
|
20
35
|
header: t("fields.handle"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCampaignFormFields
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2V74T2WI.js";
|
|
4
4
|
import {
|
|
5
5
|
useComboboxData
|
|
6
6
|
} from "./chunk-5KGMGL4N.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-AW77UWCZ.js";
|
|
10
10
|
import {
|
|
11
11
|
KeyboundForm
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SITRHMZZ.js";
|
|
13
13
|
import {
|
|
14
14
|
RouteDrawer,
|
|
15
15
|
useRouteModal
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
useCampaign,
|
|
22
22
|
useUpdatePromotion
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MTHPNKQ4.js";
|
|
24
24
|
import {
|
|
25
25
|
useDocumentDirection
|
|
26
26
|
} from "./chunk-Y7QKP6QU.js";
|
|
27
27
|
import {
|
|
28
28
|
sdk
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LXZXXOJ3.js";
|
|
30
30
|
|
|
31
31
|
// src/pages/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx
|
|
32
32
|
import { zodResolver } from "@hookform/resolvers/zod";
|